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:
Fintan Halpenny
2023-01-30 11:00:22 +00:00
parent 48022590d0
commit 7036923712
27 changed files with 40 additions and 47 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ percent-encoding = "2"
thiserror = "1"
[dependencies.git2]
version = "0.15.0"
version = "0.16.1"
default-features = false
features = ["vendored-libgit2"]
+2 -2
View File
@@ -340,7 +340,7 @@ impl OneLevel {
}
pub fn into_qualified(self, category: RefLike) -> Qualified {
Qualified(format!("refs/{}/{}", category, self))
Qualified(format!("refs/{category}/{self}"))
}
}
@@ -454,7 +454,7 @@ impl From<RefLike> for Qualified {
if path.starts_with("refs/") {
Self(path)
} else {
Self(format!("refs/heads/{}", path))
Self(format!("refs/heads/{path}"))
}
}
}
+1 -1
View File
@@ -24,7 +24,7 @@ serde = "1"
serde_json = "1"
[dependencies.git2]
version = "0.15.0"
version = "0.16.1"
default-features = false
features = ["vendored-libgit2"]