History

thanks clippy

Sebastian Thiel committed 3 years ago

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

Showing the changes to git-commitgraph/src (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
148148 if chunk_size % entry_size != 0 {
149149 return Err(Error::InvalidChunkSize {
150150 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}"),
152152 });
153153 }
154154 Ok((
@@ -166,7 +166,7 @@ impl TryFrom<&Path> for File { · 11 unmodified lines
166166 if chunk_size != expected_size {
167167 return Err(Error::InvalidChunkSize {
168168 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}"),
170170 });
171171 }
172172 Ok(chunk_range.start)
git-commitgraph/src/graph/init.rs+1−1
@@ -62,7 +62,7 @@ impl Graph { · 61 unmodified lines
6262 err: e,
6363 path: chain_file_path.clone(),
6464 })?;
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"));
6666 files.push(File::at(&graph_file_path).map_err(|e| Error::File {
6767 err: e,
6868 path: graph_file_path.clone(),