diff --git a/src/custom_yaml/mod.rs b/src/custom_yaml/mod.rs index 803cd5f..211add7 100644 --- a/src/custom_yaml/mod.rs +++ b/src/custom_yaml/mod.rs @@ -22,7 +22,7 @@ impl Dezoomer for CustomDezoomer { self.assert(data.uri.ends_with("tiles.yaml"))?; let contents = data.with_contents()?.contents; let dezoomer: CustomYamlTiles = - serde_yaml::from_slice(&contents).map_err(DezoomerError::wrap)?; + serde_yaml::from_slice(contents).map_err(DezoomerError::wrap)?; single_level(dezoomer) } } diff --git a/src/encoder/retiler.rs b/src/encoder/retiler.rs index 7908c59..816548a 100644 --- a/src/encoder/retiler.rs +++ b/src/encoder/retiler.rs @@ -117,7 +117,7 @@ impl Retiler { cur_tile_size, self.original_size, scale_factor, - &scaled_tile)?; + scaled_tile)?; if let Some(tile_img) = finished { self.tile_save(cur_pos, cur_tile_size, tile_img)?; self.tiles.insert(cur_pos, None); diff --git a/src/krpano/krpano_metadata.rs b/src/krpano/krpano_metadata.rs index b2a7590..25bbffa 100644 --- a/src/krpano/krpano_metadata.rs +++ b/src/krpano/krpano_metadata.rs @@ -74,7 +74,7 @@ impl TopLevelTags { match self { Self::SourceDetails { subject } => Some(subject), Self::Data(bytes) => - serde_json::from_str::(&bytes).ok() + serde_json::from_str::(bytes).ok() .map(|m| m.title), _ => None } diff --git a/src/lib.rs b/src/lib.rs index 00a388b..24292af 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -142,7 +142,7 @@ async fn find_zoomlevel(args: &Arguments) -> Result { } pub async fn dezoomify(args: &Arguments) -> Result { - let zoom_level = find_zoomlevel(&args).await?; + let zoom_level = find_zoomlevel(args).await?; let base_dir = current_dir()?; let outname = get_outname(&args.outfile, &zoom_level.title(), &base_dir,zoom_level.size_hint()); let save_as = fs::canonicalize(outname.as_path()).unwrap_or_else(|_e| outname.clone()); @@ -160,7 +160,7 @@ pub async fn dezoomify_level( ) -> Result<(), ZoomError> { let level_headers = zoom_level.http_headers(); let downloader = TileDownloader { - http_client: client(level_headers.iter().chain(args.headers()), &args, None)?, + http_client: client(level_headers.iter().chain(args.headers()), args, None)?, post_process_fn: zoom_level.post_process_fn(), retries: args.retries, retry_delay: args.retry_delay,