mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-10-24 13:50:36 +08:00
nix: update to rust-1.67
Rust 1.67 was announced[0]. Update the nix sources to be on par with the latest rustc version. This required fixes to clippy warnings for using variable interpolation for format strings. There was also an advisory error related to libgit2-sys[1], which is transitively depended on via git2. The fix is included in the 0.16.1 version of git2. [0]: https://blog.rust-lang.org/2023/01/26/Rust-1.67.0.html [1]: https://rustsec.org/advisories/RUSTSEC-2023-0003 Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
@@ -14,7 +14,7 @@ keywords = ["git", "radicle"]
|
||||
thiserror = "1"
|
||||
|
||||
[dependencies.git2]
|
||||
version = "0.15.0"
|
||||
version = "0.16.1"
|
||||
default-features = false
|
||||
features = ["vendored-libgit2"]
|
||||
|
||||
|
||||
@@ -276,14 +276,14 @@ impl ToString for Commit {
|
||||
writeln!(buf, "tree {}", self.tree).ok();
|
||||
|
||||
for parent in &self.parents {
|
||||
writeln!(buf, "parent {}", parent).ok();
|
||||
writeln!(buf, "parent {parent}").ok();
|
||||
}
|
||||
|
||||
writeln!(buf, "author {}", self.author).ok();
|
||||
writeln!(buf, "committer {}", self.committer).ok();
|
||||
|
||||
for (name, value) in self.headers.iter() {
|
||||
writeln!(buf, "{} {}", name, value.replace('\n', "\n ")).ok();
|
||||
writeln!(buf, "{name} {}", value.replace('\n', "\n ")).ok();
|
||||
}
|
||||
writeln!(buf).ok();
|
||||
write!(buf, "{}", self.message.trim()).ok();
|
||||
|
||||
@@ -18,7 +18,7 @@ test = []
|
||||
path = ".."
|
||||
|
||||
[dev-dependencies.git2]
|
||||
version = "0.15.0"
|
||||
version = "0.16.1"
|
||||
default-features = false
|
||||
features = ["vendored-libgit2"]
|
||||
|
||||
|
||||
@@ -23,6 +23,6 @@ fn valid_commits() {
|
||||
for oid in walk.take(20) {
|
||||
let oid = oid.unwrap();
|
||||
let commit = Commit::read(&repo, oid);
|
||||
assert!(commit.is_ok(), "Oid: {}, Error: {:?}", oid, commit)
|
||||
assert!(commit.is_ok(), "Oid: {oid}, Error: {commit:?}")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user