Skip to content

Commit

Permalink
refactor: elided unnecessary specified lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
Crypto-Spartan committed Jan 13, 2025
1 parent 20e1779 commit 6b20ef9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/gui/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub(crate) struct GuiApp<'a> {
popup_window_option: Option<PopupWindow<'a>>,
}

impl<'a> eframe::App for GuiApp<'a> {
impl eframe::App for GuiApp<'_> {
/// Called each time the UI needs repainting, which may be many times per second.
/// Put your widgets into a `SidePanel`, `TopPanel`, `CentralPanel`, `Window` or `Area`.
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
Expand Down Expand Up @@ -89,7 +89,7 @@ impl<'a> eframe::App for GuiApp<'a> {
}
}

impl<'a> Default for GuiApp<'a> {
impl Default for GuiApp<'_> {
fn default() -> Self {
let font_size_enum = FontSize::Medium;

Expand Down Expand Up @@ -139,7 +139,7 @@ impl<'a> Default for GuiApp<'a> {
}
}

impl<'a> GuiApp<'a> {
impl GuiApp<'_> {
/// Called once before the first frame.
pub(crate) fn new(cc: &eframe::CreationContext<'_>) -> Self {
// This is also where you can customized the look at feel of egui using
Expand Down
2 changes: 1 addition & 1 deletion src/gui/popup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub(super) struct GuiError<'a> {
err_lvl: GuiErrorLevel,
}

impl<'a> GuiError<'a> {
impl GuiError<'_> {
pub(super) fn new_info(title: &'static str, desc: Box<str>) -> Self {
Self {
title: Cow::Borrowed(title),
Expand Down

0 comments on commit 6b20ef9

Please sign in to comment.