History

thanks clippy

Sebastian Thiel committed 3 years ago

Commit bac57dd1 parent e22080e100 files · +172 −230Browse files

Showing the changes to git-commitgraph (2 of 100 files). Show all

Unified · Split

2 files
  1. git-commitgraph/src/file/init.rs +2 −2
  2. git-commitgraph/src/graph/init.rs +1 −1
git-commitgraph/src/file/init.rs+2−2
@@ -148,7 +148,7 @@ impl TryFrom<&Path> for File { · 147 unmodified lines
148 if chunk_size % entry_size != 0 {148 if chunk_size % entry_size != 0 {
149 return Err(Error::InvalidChunkSize {149 return Err(Error::InvalidChunkSize {
150 id: COMMIT_DATA_CHUNK_ID,150 id: COMMIT_DATA_CHUNK_ID,
151 msg: format!("chunk size {} is not a multiple of {}", chunk_size, entry_size),151 msg: format!("chunk size {chunk_size} is not a multiple of {entry_size}"),
152 });152 });
153 }153 }
154 Ok((154 Ok((
@@ -166,7 +166,7 @@ impl TryFrom<&Path> for File { · 11 unmodified lines
166 if chunk_size != expected_size {166 if chunk_size != expected_size {
167 return Err(Error::InvalidChunkSize {167 return Err(Error::InvalidChunkSize {
168 id: OID_FAN_CHUNK_ID,168 id: OID_FAN_CHUNK_ID,
169 msg: format!("expected chunk length {}, got {}", expected_size, chunk_size),169 msg: format!("expected chunk length {expected_size}, got {chunk_size}"),
170 });170 });
171 }171 }
172 Ok(chunk_range.start)172 Ok(chunk_range.start)
git-commitgraph/src/graph/init.rs+1−1
@@ -62,7 +62,7 @@ impl Graph { · 61 unmodified lines
62 err: e,62 err: e,
63 path: chain_file_path.clone(),63 path: chain_file_path.clone(),
64 })?;64 })?;
65 let graph_file_path = commit_graphs_dir.join(format!("graph-{}.graph", hash));65 let graph_file_path = commit_graphs_dir.join(format!("graph-{hash}.graph"));
66 files.push(File::at(&graph_file_path).map_err(|e| Error::File {66 files.push(File::at(&graph_file_path).map_err(|e| Error::File {
67 err: e,67 err: e,
68 path: graph_file_path.clone(),68 path: graph_file_path.clone(),