mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-10-26 06:40:42 +08:00
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
15 lines
410 B
Rust
15 lines
410 B
Rust
use git2::Repository;
|
|
use git_storage::{signature::UserInfo, Write};
|
|
use test_helpers::tempdir::WithTmpDir;
|
|
|
|
pub type TmpWriter = WithTmpDir<Write>;
|
|
pub type TmpRepo = WithTmpDir<Repository>;
|
|
|
|
pub fn writer(user: UserInfo) -> TmpWriter {
|
|
WithTmpDir::new(|path| {
|
|
Write::open(path, user)
|
|
.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e.to_string()))
|
|
})
|
|
.unwrap()
|
|
}
|