Skip to content

Commit 752dac0

Browse files
committed
Fix Windows-only sys prefix Clippy diagnostic
Assisted-by: Codex:version-unavailable
1 parent 3d8dc5e commit 752dac0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎crates/vm/src/stdlib/sys.rs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,7 @@ pub mod sys {
258258
fn vpath(vm: &VirtualMachine) -> String {
259259
crate::getpath::source_directory(&vm.state.config.paths)
260260
.and_then(|source| std::path::absolute(source).ok())
261-
.map(|source| source.to_string_lossy().into_owned())
262-
.unwrap_or_default()
261+
.map_or_default(|source| source.to_string_lossy().into_owned())
263262
}
264263

265264
#[cfg(windows)]

0 commit comments

Comments
 (0)