Skip to content

Commit

Permalink
Apply minor clippy suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Viennot <[email protected]>
  • Loading branch information
nviennot committed Aug 25, 2021
1 parent 9c6397b commit dc36e36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/capture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ impl<'a> ImageSerializer<'a> {
match &self.current_filename {
Some(current_filename) if current_filename == filename => {},
_ => {
self.current_filename = Some(Rc::clone(&filename));
self.current_filename = Some(Rc::clone(filename));
let marker = self.gen_marker(marker::Body::Filename(filename.to_string()));
self.write_chunk(Chunk { marker, data: None })?;
}
Expand Down
2 changes: 1 addition & 1 deletion src/image_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ pub mod mem {
match self {
Small(chunk) => {
if chunk.len() + size_hint > **MAX_SMALL_CHUNK_SIZE {
*self = Self::large_from_slice(&chunk);
*self = Self::large_from_slice(chunk);
} else {
chunk.reserve_exact(size_hint);
}
Expand Down

0 comments on commit dc36e36

Please sign in to comment.