Skip to content

Commit 1afdaab

Browse files
committed
Write "0_u8" instead of "0u8", for readability.
1 parent 2283f73 commit 1afdaab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cap-primitives/src/windows/fs/read_link_impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ fn reparse_point<'a>(
102102
}
103103

104104
fn read_link(file: &fs::File) -> io::Result<PathBuf> {
105-
let mut space = [0u8; c::MAXIMUM_REPARSE_DATA_BUFFER_SIZE];
105+
let mut space = [0_u8; c::MAXIMUM_REPARSE_DATA_BUFFER_SIZE];
106106
let (_bytes, buf) = reparse_point(file, &mut space)?;
107107
unsafe {
108108
let (path_buffer, subst_off, subst_len, relative) = match buf.ReparseTag {

tests/sys_common/symlink_junction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fn symlink_junction_inner(target: &Path, dir: &Dir, junction: &Path) -> io::Resu
7575
let h = f.as_raw_handle();
7676

7777
unsafe {
78-
let mut data = [0u8; winapi::um::winnt::MAXIMUM_REPARSE_DATA_BUFFER_SIZE as usize];
78+
let mut data = [0_u8; winapi::um::winnt::MAXIMUM_REPARSE_DATA_BUFFER_SIZE as usize];
7979
let db = data.as_mut_ptr() as *mut REPARSE_MOUNTPOINT_DATA_BUFFER;
8080
let buf = &mut (*db).ReparseTarget as *mut winapi::um::winnt::WCHAR;
8181
let mut i = 0;

0 commit comments

Comments
 (0)