We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07ac516 commit 230fd10Copy full SHA for 230fd10
1 file changed
src/dotfiles.rs
@@ -202,7 +202,10 @@ fn platform_is_under_wsl() -> bool {
202
}
203
204
205
- std::fs::exists("/proc/sys/fs/binfmt_misc/WSLInterop").is_ok()
+ matches!(
206
+ std::fs::exists("/proc/sys/fs/binfmt_misc/WSLInterop"),
207
+ Ok(true)
208
+ )
209
210
211
/// Returns true if a group with specified name can be used by current platform.
@@ -555,7 +558,9 @@ mod tests {
555
558
556
559
assert_eq!(
557
560
Dotfile::try_from(group).unwrap().to_target_path().unwrap(),
- super::get_dotfiles_target_dir_path().unwrap().join(".zshrc")
561
+ super::get_dotfiles_target_dir_path()
562
+ .unwrap()
563
+ .join(".zshrc")
564
);
565
566
0 commit comments