Fix clippy::semicolon_if_nothing_returned
This commit is contained in:
parent
9991052ce5
commit
34f07b6027
46 changed files with 108 additions and 108 deletions
|
|
@ -87,7 +87,7 @@ impl<T: bytemuck::Pod> Buffer<T> {
|
|||
|
||||
/// Clears any temporary data (i.e. offsets) from the buffer.
|
||||
pub fn clear(&mut self) {
|
||||
self.offsets.clear()
|
||||
self.offsets.clear();
|
||||
}
|
||||
|
||||
/// Returns the offset at `index`, if it exists.
|
||||
|
|
|
|||
|
|
@ -480,7 +480,7 @@ impl Frame {
|
|||
},
|
||||
size: self.size,
|
||||
}),
|
||||
))
|
||||
));
|
||||
}
|
||||
}
|
||||
Buffer::Gradient(buffer) => {
|
||||
|
|
@ -493,7 +493,7 @@ impl Frame {
|
|||
},
|
||||
size: self.size,
|
||||
}),
|
||||
))
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ impl Atlas {
|
|||
|
||||
padded_data[offset..offset + 4 * width as usize].copy_from_slice(
|
||||
&data[row * 4 * width as usize..(row + 1) * 4 * width as usize],
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
match &entry {
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ impl<'a> Layer<'a> {
|
|||
translation,
|
||||
primitive,
|
||||
current_layer,
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
Primitive::Clip { bounds, content } => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue