You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/hexdump.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ const CHUNK_SIZE: usize = 4096;
15
15
16
16
fnmain(){
17
17
// Use the current executable as source file (because we know that will exist).
18
-
let exe_path = ::std::env::current_exe().expect("current_exe failed");
18
+
let exe_path = std::env::current_exe().expect("current_exe failed");
19
19
let exe_path_str = exe_path.to_str().expect("invalid unicode path");
20
20
21
21
let file = StorageFile::get_file_from_path_async(&*FastHString::new(&exe_path_str)).unwrap().blocking_get().expect("get_file_from_path_async failed").unwrap();
Copy file name to clipboardExpand all lines: examples/test.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -144,7 +144,7 @@ fn main() {
144
144
assert!(asi.close().is_ok());
145
145
146
146
// Walk directories up to root
147
-
let exe_path = ::std::env::current_exe().expect("current_exe failed");
147
+
let exe_path = std::env::current_exe().expect("current_exe failed");
148
148
let exe_path_str = exe_path.to_str().expect("invalid unicode path");
149
149
let file = StorageFile::get_file_from_path_async(&*FastHString::new(&exe_path_str)).unwrap().blocking_get().expect("get_file_from_path_async failed").unwrap();
0 commit comments