mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-14 06:02:36 +00:00
Use a full string literal for MSRV 1.43.1 compatibility
This commit is contained in:
parent
3409dce094
commit
29d9c3b10e
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ pub fn get_file_data(path: &Path) -> Result<(Owner, Permissions), io::Error> {
|
||||||
&owner_name.to_string_lossy()
|
&owner_name.to_string_lossy()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Err(_) => String::from('-'),
|
Err(_) => String::from("-"),
|
||||||
};
|
};
|
||||||
|
|
||||||
let group = match unsafe { lookup_account_sid(group_sid_ptr) } {
|
let group = match unsafe { lookup_account_sid(group_sid_ptr) } {
|
||||||
|
@ -91,7 +91,7 @@ pub fn get_file_data(path: &Path) -> Result<(Owner, Permissions), io::Error> {
|
||||||
&group_name.to_string_lossy()
|
&group_name.to_string_lossy()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Err(_) => String::from('-'),
|
Err(_) => String::from("-"),
|
||||||
};
|
};
|
||||||
|
|
||||||
// This structure will be returned
|
// This structure will be returned
|
||||||
|
|
Loading…
Reference in a new issue