Fix "unwrap or else default" clippy warning

This commit is contained in:
Daniel Hofstetter 2022-11-04 09:11:24 +01:00
parent 59f37d88d0
commit 96ef306cb3

View file

@ -303,7 +303,7 @@ impl MountInfo {
let mut mn_info = Self {
dev_id: volume_name,
dev_name,
fs_type: fs_type.unwrap_or_else(|| "".to_string()),
fs_type: fs_type.unwrap_or_default(),
mount_root,
mount_dir: "".to_string(),
mount_option: "".to_string(),