use 'Self' keyword to refer to own type (clippy::use_self)

This commit is contained in:
Daniel Eades 2023-12-10 16:32:17 +00:00
parent 12a5804fa7
commit 1ffd464c21
7 changed files with 24 additions and 24 deletions

View file

@ -68,7 +68,7 @@ impl cosmic::Application for App {
/// Creates the application, and optionally emits command on initialize.
fn init(core: Core, _input: Self::Flags) -> (Self, Command<Self::Message>) {
let mut app = App {
let mut app = Self {
core,
open_sender: None,
file_contents: String::new(),