mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 04:19:18 +00:00
Use references for Export
binding type (#3853)
This commit is contained in:
parent
924bebbb4a
commit
25771cd4b9
3 changed files with 65 additions and 62 deletions
|
@ -207,9 +207,9 @@ pub struct StarImportation<'a> {
|
|||
// FutureImportation
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Export {
|
||||
pub struct Export<'a> {
|
||||
/// The names of the bindings exported via `__all__`.
|
||||
pub names: Vec<String>,
|
||||
pub names: Vec<&'a str>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
|
@ -258,7 +258,7 @@ pub enum BindingKind<'a> {
|
|||
Builtin,
|
||||
ClassDefinition,
|
||||
FunctionDefinition,
|
||||
Export(Export),
|
||||
Export(Export<'a>),
|
||||
FutureImportation,
|
||||
Importation(Importation<'a>),
|
||||
FromImportation(FromImportation<'a>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue