History

thanks clippy

Sebastian Thiel committed 3 years ago

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

Showing the changes to git-commitgraph/src/file (1 of 100 files). Show all

Unified · Split

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)