mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-06 00:20:37 +00:00
Simplify get_size2
usage (#19643)
## Summary These were added in the 0.5.0 release.
This commit is contained in:
parent
4739bc8d14
commit
8f8c39c435
18 changed files with 61 additions and 67 deletions
|
@ -86,7 +86,7 @@ declare_lint! {
|
|||
}
|
||||
}
|
||||
|
||||
#[salsa::tracked(returns(ref), heap_size=get_size2::GetSize::get_heap_size)]
|
||||
#[salsa::tracked(returns(ref), heap_size=get_size2::heap_size)]
|
||||
pub(crate) fn suppressions(db: &dyn Db, file: File) -> Suppressions {
|
||||
let parsed = parsed_module(db, file).load(db);
|
||||
let source = source_text(db, file);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue