fmt: remove .rustfmt.toml

The formatting configuration is not worth the maintenance of a nightly
version. Remove it and allow the default formatting to be used
instead.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
Fintan Halpenny
2024-03-13 14:11:36 +00:00
parent 53c31312e0
commit f4a958010c
33 changed files with 92 additions and 196 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ impl FromStr for Author {
let hours = tz_offset / 100;
let minutes = tz_offset % 100;
hours * 60 + minutes
},
}
};
let time = match components.next_back() {
None => return Err(ParseError::Missing("time")),
+6 -6
View File
@@ -83,13 +83,13 @@ impl<'a> Blob<'a> {
git.find_reference(&name).or_matches(is_not_found_err, || {
Err(Error::NotFound(NotFound::NoSuchBranch(name.into_owned())))
})
},
}
Branch::Ref(reference) => Ok(reference),
}?;
let tree = reference.peel_to_tree()?;
blob(git, tree, path)
},
}
Self::Init { branch, path } => {
let start = match branch {
@@ -100,7 +100,7 @@ impl<'a> Blob<'a> {
(_, Some(sym)) => Ok(revwalk::Start::Ref(sym.to_string())),
(_, _) => Err(Error::NotFound(NotFound::NoRefTarget)),
}
},
}
}?;
let revwalk = revwalk::FirstParent::new(git, start)?.reverse()?;
@@ -112,9 +112,9 @@ impl<'a> Blob<'a> {
let oid = oid?;
let tree = git.find_commit(oid)?.tree()?;
blob(git, tree, path)
},
}
}
},
}
Self::At { object, path } => {
let tree = git
@@ -124,7 +124,7 @@ impl<'a> Blob<'a> {
})
.and_then(|obj| Ok(obj.peel_to_tree()?))?;
blob(git, tree, path)
},
}
}
}
}
+2 -2
View File
@@ -70,11 +70,11 @@ impl Tree<'_> {
Blob(data) => {
let oid = repo.blob(data)?;
builder.insert(name.as_ref(), oid, git2::FileMode::Blob.into())?;
},
}
Tree(sub) => {
let oid = sub.write(repo)?;
builder.insert(name.as_ref(), oid, git2::FileMode::Tree.into())?;
},
}
}
}