chore: Fix clippy for upcoming 1.79 Rust release (#12727)
1.79 is due for release in a week. Release Notes: - N/A
This commit is contained in:
parent
a0c0f1ebcd
commit
377e24b798
11 changed files with 20 additions and 21 deletions
|
@ -3969,8 +3969,7 @@ impl Workspace {
|
|||
fn adjust_padding(padding: Option<f32>) -> f32 {
|
||||
padding
|
||||
.unwrap_or(Self::DEFAULT_PADDING)
|
||||
.min(Self::MAX_PADDING)
|
||||
.max(0.0)
|
||||
.clamp(0.0, Self::MAX_PADDING)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue