cleanup: fmt + clippy

This commit is contained in:
Ashley Wulber 2024-03-27 00:53:02 -04:00
parent ace619fd01
commit a698efe935
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
3 changed files with 6 additions and 6 deletions

View file

@ -116,7 +116,7 @@ fn main() {
smithay_clipboard::dnd::DndEvent::Offer(id, OfferEvent::Enter { mime_types, .. }) => {
println!("Received DnD Enter for {id:?}");
state.offer_hover_id = id;
if let Some(mime) = mime_types.get(0) {
if let Some(mime) = mime_types.first() {
if let Ok(data) = state
.clipboard
.peek_offer::<smithay_clipboard::text::Text>(Some(mime.clone()))
@ -589,7 +589,7 @@ impl SimpleWindow {
};
// Draw to the window:
canvas.chunks_exact_mut(4).enumerate().for_each(|(_, chunk)| {
canvas.chunks_exact_mut(4).for_each(|chunk| {
// ARGB color.
let color = 0xFF181818u32;