fix clippy warnings

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-04-19 14:30:08 -07:00
parent a71e8206fb
commit 99ac578ebd
11 changed files with 88 additions and 89 deletions

View File

@@ -228,7 +228,7 @@ fn render_pfp(ui: &mut egui::Ui, damus: &mut Damus, url: &str) {
}
}
fn pfp_image<'a>(ui: &mut egui::Ui, img: &TextureHandle, size: f32) -> egui::Response {
fn pfp_image(ui: &mut egui::Ui, img: &TextureHandle, size: f32) -> egui::Response {
#[cfg(feature = "profiling")]
puffin::profile_function!();

View File

@@ -24,18 +24,18 @@ impl NoteOptions {
#[inline]
pub fn set_note_previews(&mut self, enable: bool) {
if enable {
*self = *self | NoteOptions::note_previews;
*self |= NoteOptions::note_previews;
} else {
*self = *self & !NoteOptions::note_previews;
*self &= !NoteOptions::note_previews;
}
}
#[inline]
pub fn set_actionbar(&mut self, enable: bool) {
if enable {
*self = *self | NoteOptions::actionbar;
*self |= NoteOptions::actionbar;
} else {
*self = *self & !NoteOptions::actionbar;
*self &= !NoteOptions::actionbar;
}
}
}