Another batch of lint fixes (#36521)

- **Enable a bunch of extra lints**
- **First batch of fixes**
- **More fixes**

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-08-19 22:33:44 +02:00 committed by GitHub
parent 69b1c6d6f5
commit 6825715503
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
147 changed files with 788 additions and 1042 deletions

View file

@ -78,7 +78,7 @@ impl RenderOnce for Facepile {
}
}
pub const EXAMPLE_FACES: [&'static str; 6] = [
pub const EXAMPLE_FACES: [&str; 6] = [
"https://avatars.githubusercontent.com/u/326587?s=60&v=4",
"https://avatars.githubusercontent.com/u/2280405?s=60&v=4",
"https://avatars.githubusercontent.com/u/1789?s=60&v=4",

View file

@ -616,7 +616,7 @@ impl SwitchField {
Self {
id: id.into(),
label: label.into(),
description: description,
description,
toggle_state: toggle_state.into(),
on_click: Arc::new(on_click),
disabled: false,

View file

@ -175,7 +175,7 @@ impl Tooltip {
move |_, cx| {
let title = title.clone();
cx.new(|_| Self {
title: title,
title,
meta: None,
key_binding: None,
})