use 'Self' to refer to own type
This commit is contained in:
parent
a88cbad37f
commit
b9723dd5e0
15 changed files with 48 additions and 54 deletions
|
|
@ -27,7 +27,7 @@ impl cosmic::Application for Button {
|
|||
const APP_ID: &'static str = "com.system76.CosmicPanelButton";
|
||||
|
||||
fn init(core: cosmic::app::Core, desktop: Desktop) -> (Self, app::Command<Msg>) {
|
||||
(Button { core, desktop }, app::Command::none())
|
||||
(Self { core, desktop }, app::Command::none())
|
||||
}
|
||||
|
||||
fn core(&self) -> &cosmic::app::Core {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue