File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ pub fn hooks_prepare_commit_msg(
7474
7575#[ cfg( test) ]
7676mod 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 }
You can’t perform that action at this time.
0 commit comments