Skip to content

Commit f395551

Browse files
committed
rustc_metadata: replace ? in expression with map
1 parent 93cee99 commit f395551

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_metadata/src/locator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ impl<'a> CrateLocator<'a> {
755755
}
756756

757757
// Extract the dylib/rlib/rmeta triple.
758-
Ok(self.extract_lib(rlibs, rmetas, dylibs)?.map(|(_, lib)| lib))
758+
self.extract_lib(rlibs, rmetas, dylibs).map(|opt| opt.map(|(_, lib)| lib))
759759
}
760760

761761
pub(crate) fn into_error(self, root: Option<CratePaths>) -> CrateError {

0 commit comments

Comments
 (0)