We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2772b59 commit 204ebbcCopy full SHA for 204ebbc
src/utils/utils.rs
@@ -611,7 +611,6 @@ pub fn format_path_for_display(path: &str) -> String {
611
/// Encodes a utf-8 string as a null-terminated UCS-2 string in bytes
612
#[cfg(windows)]
613
pub fn string_to_winreg_bytes(s: &str) -> Vec<u8> {
614
- use std::ffi::OsString;
615
use std::os::windows::ffi::OsStrExt;
616
let v: Vec<_> = OsString::from(format!("{}\x00", s)).encode_wide().collect();
617
unsafe { std::slice::from_raw_parts(v.as_ptr() as *const u8, v.len() * 2).to_vec() }
tests/mock/mock_bin_src.rs
@@ -1,7 +1,7 @@
1
use std::env::consts::EXE_SUFFIX;
2
use std::env;
3
use std::fs::File;
4
-use std::io::{self, Write, Read};
+use std::io::{self, Write};
5
use std::path::{PathBuf, Path};
6
use std::process::Command;
7
0 commit comments