Skip to content

Commit 090493e

Browse files
committed
Fixed the 'identity_conversion' clippy warning
Relevant lint: https://rust-lang.github.io/rust-clippy/master/index.html#identity_conversion
1 parent 95b5b75 commit 090493e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/info.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ impl Info {
331331
let head_oid = head.target().ok_or(Error::ReferenceInfoError)?;
332332
let refs = repo.references().map_err(|_| Error::ReferenceInfoError)?;
333333
let refs_info = refs
334-
.into_iter()
335334
.filter_map(|reference| match reference {
336335
Ok(reference) => match (reference.target(), reference.shorthand()) {
337336
(Some(oid), Some(shorthand)) if oid == head_oid => {
@@ -466,7 +465,7 @@ impl Info {
466465
}
467466
files_count -= 1; // As splitting giving one line extra(blank).
468467
let res = repo_size.to_owned() + (" (") + &(files_count.to_string()) + (" files)");
469-
Ok(res.into())
468+
Ok(res)
470469
} else {
471470
let res = repo_size;
472471
Ok(res.into())

0 commit comments

Comments
 (0)