mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
Update Rust to v1.77 (#10510)
This commit is contained in:
parent
ac150b9314
commit
60fd98eb2f
26 changed files with 35 additions and 84 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue