diff --git a/src/ls.rs b/src/ls.rs index 5b2a1d6..bc92074 100644 --- a/src/ls.rs +++ b/src/ls.rs @@ -157,9 +157,9 @@ impl NormalPrinter { let current_year = time::OffsetDateTime::now_utc().year(); for (i, item) in items.into_iter().enumerate() { - if let Some(nd) = next_dir { - if *nd.1 == i { - let dir = &(&prefixes[nd.0])[self.prefix_len..]; + if let Some(dir) = next_dir { + if *dir.1 == i { + let dir = &(&prefixes[dir.0])[self.prefix_len..]; let dir = &dir[..dir.len() - 1]; // Remove trailing delimiter print_dir(&self.cc, self.display, dir); @@ -203,8 +203,8 @@ impl NormalPrinter { } } - while let Some(nd) = next_dir { - let dir = &(&prefixes[nd.0])[self.prefix_len..]; + while let Some(dir) = next_dir { + let dir = &(&prefixes[dir.0])[self.prefix_len..]; let dir = &dir[..dir.len() - 1]; // Remove trailing delimiter print_dir(&self.cc, self.display, dir); diff --git a/src/signurl.rs b/src/signurl.rs index 49f746d..d9a22ec 100644 --- a/src/signurl.rs +++ b/src/signurl.rs @@ -60,7 +60,7 @@ pub struct Args { #[clap( short, default_value = "1h", - long_help = "The duration that ths signed url will be valid for. + long_help = "The duration that the signed url will be valid for. Times may be specified with no suffix (default hours), or one of: * (s)econds diff --git a/src/util.rs b/src/util.rs index de8595c..f43d3e9 100644 --- a/src/util.rs +++ b/src/util.rs @@ -153,7 +153,7 @@ impl GsUrl { } } -/// Converts a `gs:///` url into a regular object identifer +/// Converts a `gs:///` url into a regular object identifier pub fn gs_url_to_object_id(url: &url::Url) -> anyhow::Result { match url.scheme() { "gs" => {