Update Rust to v1.77 (#10510)

This commit is contained in:
Charlie Marsh 2024-03-21 12:10:33 -04:00 committed by GitHub
parent ac150b9314
commit 60fd98eb2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 35 additions and 84 deletions

View file

@ -878,9 +878,7 @@ pub fn resolve_imported_module_path<'a>(
return Some(Cow::Borrowed(module.unwrap_or("")));
}
let Some(module_path) = module_path else {
return None;
};
let module_path = module_path?;
if level as usize >= module_path.len() {
return None;