mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-20 09:09:51 +00:00
Refine SemanticModel lifetime bounds (#10221)
## Summary Corrects/refines some semantic model and related lifetime bounds. ## Test Plan `cargo check`
This commit is contained in:
parent
4eac9baf43
commit
64f66cd8fe
7 changed files with 46 additions and 40 deletions
|
@ -48,8 +48,8 @@ impl<'a> Globals<'a> {
|
|||
builder.finish()
|
||||
}
|
||||
|
||||
pub(crate) fn get(&self, name: &str) -> Option<&TextRange> {
|
||||
self.0.get(name)
|
||||
pub(crate) fn get(&self, name: &str) -> Option<TextRange> {
|
||||
self.0.get(name).copied()
|
||||
}
|
||||
|
||||
pub(crate) fn iter(&self) -> impl Iterator<Item = (&&'a str, &TextRange)> + '_ {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue