Skip to content

Commit 204ebbc

Browse files
committed
Remove redundant import
1 parent 2772b59 commit 204ebbc

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
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() }

tests/mock/mock_bin_src.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::env::consts::EXE_SUFFIX;
22
use std::env;
33
use std::fs::File;
4-
use std::io::{self, Write, Read};
4+
use std::io::{self, Write};
55
use std::path::{PathBuf, Path};
66
use std::process::Command;
77

0 commit comments

Comments
 (0)