clippy: use io::Error::other

Use the helper constructor to build I/O errors with the `Other` kind.
This commit is contained in:
Fintan Halpenny
2025-12-08 15:11:21 +00:00
parent 68d6fa879f
commit 10333caec7
4 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -13,5 +13,5 @@ pub fn into_git_err<E: Display>(e: E) -> git2::Error {
}
pub fn into_io_err(e: git2::Error) -> io::Error {
io::Error::new(io::ErrorKind::Other, e)
io::Error::other(e)
}