1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 14:50:03 -04:00

Fix some clippy issues found by 1.84.0 (#5603)

This commit is contained in:
Emil Ernerfeldt
2025-01-13 08:29:13 +01:00
committed by GitHub
parent 1339639706
commit 164f56f554
33 changed files with 65 additions and 81 deletions

View File

@@ -166,7 +166,7 @@ pub struct Strip<'a, 'b> {
size_index: usize,
}
impl<'a, 'b> Strip<'a, 'b> {
impl Strip<'_, '_> {
#[cfg_attr(debug_assertions, track_caller)]
fn next_cell_size(&mut self) -> (CellSize, CellSize) {
let size = if let Some(size) = self.sizes.get(self.size_index) {
@@ -219,7 +219,7 @@ impl<'a, 'b> Strip<'a, 'b> {
}
}
impl<'a, 'b> Drop for Strip<'a, 'b> {
impl Drop for Strip<'_, '_> {
fn drop(&mut self) {
while self.size_index < self.sizes.len() {
self.empty();