We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95b5b75 commit 090493eCopy full SHA for 090493e
src/info.rs
@@ -331,7 +331,6 @@ impl Info {
331
let head_oid = head.target().ok_or(Error::ReferenceInfoError)?;
332
let refs = repo.references().map_err(|_| Error::ReferenceInfoError)?;
333
let refs_info = refs
334
- .into_iter()
335
.filter_map(|reference| match reference {
336
Ok(reference) => match (reference.target(), reference.shorthand()) {
337
(Some(oid), Some(shorthand)) if oid == head_oid => {
@@ -466,7 +465,7 @@ impl Info {
466
465
}
467
files_count -= 1; // As splitting giving one line extra(blank).
468
let res = repo_size.to_owned() + (" (") + &(files_count.to_string()) + (" files)");
469
- Ok(res.into())
+ Ok(res)
470
} else {
471
let res = repo_size;
472
Ok(res.into())
0 commit comments