Skip to content

Commit 40179d5

Browse files
committed
remove dead_code
1 parent f2d41fd commit 40179d5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

asyncgit/src/sync/hooks.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub fn hooks_prepare_commit_msg(
7474

7575
#[cfg(test)]
7676
mod tests {
77-
use std::ffi::{OsStr, OsString};
77+
use std::ffi::OsString;
7878

7979
use git2::Repository;
8080
use tempfile::TempDir;
@@ -83,6 +83,7 @@ mod tests {
8383
use crate::sync::tests::repo_init_with_prefix;
8484

8585
fn repo_init() -> Result<(TempDir, Repository)> {
86+
#[allow(dead_code)]
8687
const INVALID_UTF8: &[u8] = b"\xED\xA0\x80";
8788

8889
let mut os_string: OsString = OsString::new();
@@ -106,7 +107,7 @@ mod tests {
106107
{
107108
use std::os::unix::ffi::OsStrExt;
108109

109-
os_string.push(OsStr::from_bytes(INVALID_UTF8));
110+
os_string.push(std::ffi::OsStr::from_bytes(INVALID_UTF8));
110111

111112
assert!(os_string.to_str().is_none());
112113
}

0 commit comments

Comments
 (0)