Make ImportFrom level just a u32 (#11170)

This commit is contained in:
Carl Meyer 2024-04-26 20:38:35 -06:00 committed by GitHub
parent 5994414739
commit 845ba7cf5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 100 additions and 182 deletions

View file

@ -1,7 +1,7 @@
#[derive(Debug, Clone)]
pub struct StarImport<'a> {
/// The level of the import. `None` or `Some(0)` indicate an absolute import.
pub level: Option<u32>,
/// The level of the import. `0` indicates an absolute import.
pub level: u32,
/// The module being imported. `None` indicates a wildcard import.
pub module: Option<&'a str>,
}