Skip to content

Commit

Permalink
rustc_metadata: replace ? in expression with map
Browse files Browse the repository at this point in the history
  • Loading branch information
tamird committed Oct 15, 2024
1 parent 93cee99 commit f395551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_metadata/src/locator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ impl<'a> CrateLocator<'a> {
}

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

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

0 comments on commit f395551

Please sign in to comment.