Use a full string literal for MSRV 1.43.1 compatibility

This commit is contained in:
Starz0r 2021-10-07 01:12:50 -05:00 committed by Wei Zhang
parent 3409dce094
commit 29d9c3b10e

View file

@ -77,7 +77,7 @@ pub fn get_file_data(path: &Path) -> Result<(Owner, Permissions), io::Error> {
&owner_name.to_string_lossy()
)
}
Err(_) => String::from('-'),
Err(_) => String::from("-"),
};
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()
)
}
Err(_) => String::from('-'),
Err(_) => String::from("-"),
};
// This structure will be returned