Skip to content

Commit 7ceec77

Browse files
committed
style: support 1.30.0
1 parent d0256ec commit 7ceec77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,8 @@ impl Library {
850850
let target = env::var("TARGET");
851851
let is_msvc = target
852852
.as_ref()
853-
.map_or(false, |target| target.contains("msvc"));
853+
.map(|target| target.contains("msvc"))
854+
.unwrap_or(false);
854855

855856
let system_roots = if cfg!(target_os = "macos") {
856857
vec![PathBuf::from("/Library"), PathBuf::from("/System")]

0 commit comments

Comments
 (0)