chore: Fix nightly lints (#12746)

- Remove some unused code
- Use `is_multiple_of()` instead of '%'
- Collapse consecuative "if let" statements
- Elided lifetime fixes

It is enough just to review the code of your team
This commit is contained in:
Ivan Efremov
2025-07-29 00:36:30 +03:00
committed by GitHub
parent fe7a4e1ab6
commit 6be572177c
6 changed files with 12 additions and 20 deletions

View File

@@ -49,7 +49,7 @@ impl PerfSpan {
}
}
pub fn enter(&self) -> PerfSpanEntered {
pub fn enter(&self) -> PerfSpanEntered<'_> {
if let Some(ref id) = self.inner.id() {
self.dispatch.enter(id);
}