Skip to content

Commit 75010f3

Browse files
committed
Remove redundant import
1 parent d80e361 commit 75010f3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/utils/utils.rs

-1
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,6 @@ pub fn format_path_for_display(path: &str) -> String {
611611
/// Encodes a utf-8 string as a null-terminated UCS-2 string in bytes
612612
#[cfg(windows)]
613613
pub fn string_to_winreg_bytes(s: &str) -> Vec<u8> {
614-
use std::ffi::OsString;
615614
use std::os::windows::ffi::OsStrExt;
616615
let v: Vec<_> = OsString::from(format!("{}\x00", s)).encode_wide().collect();
617616
unsafe { std::slice::from_raw_parts(v.as_ptr() as *const u8, v.len() * 2).to_vec() }

0 commit comments

Comments
 (0)