From 4524d3ee5aee119b702dd52d4ef09a8e8ab66d37 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Mon, 13 Feb 2023 00:12:41 +0800 Subject: [PATCH] chore: Make clippy happy (#1329) Signed-off-by: Xuanwo --- binaries/oli/src/utils/location.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binaries/oli/src/utils/location.rs b/binaries/oli/src/utils/location.rs index bed32d947467..959e73f79568 100644 --- a/binaries/oli/src/utils/location.rs +++ b/binaries/oli/src/utils/location.rs @@ -86,7 +86,7 @@ pub fn parse_profile(name: &str) -> Result { fn parse_s3_uri(s3uri: &str) -> (&str, &str) { // TODO: support ARN - let s = s3uri.splitn(2, "/").collect::>(); + let s = s3uri.splitn(2, '/').collect::>(); debug_assert!(s.len() == 2); - return (s[0], s[1]); + (s[0], s[1]) }