Before

…lines 1–270 unchanged (270 lines)
271
272 fn dialog(&self) -> &libadwaita::Dialog {
273 self.settings_dialog.upcast_ref::<libadwaita::Dialog>()
274 }
275
276 pub fn show_self(&self) {
277 self.dialog().present(&self.parent);
278 }
279}
280
281impl EventListener for Settings {
282 fn on_event(&mut self, _: &AppEvent) {}
283}
284

After

…lines 1–270 unchanged (270 lines)
271
272 fn dialog(&self) -> &libadwaita::Dialog {
273 self.settings_dialog.upcast_ref::<libadwaita::Dialog>()
274 }
275
276 pub fn show_self(&self) {
277 self.dialog().present(Some(&self.parent));
278 }
279}
280
281impl EventListener for Settings {
282 fn on_event(&mut self, _: &AppEvent) {}
283}
284

Before

source_file
use_declaration
use "use"
scoped_identifier
scoped_identifier
scoped_identifier
crate "crate"
:: "::"
identifier "app"
:: "::"
identifier "components"
:: "::"
identifier "EventListener"
; ";"
use_declaration
use "use"
scoped_identifier
scoped_identifier
crate "crate"
:: "::"
identifier "app"
:: "::"
identifier "AppEvent"
; ";"
use_declaration
use "use"
scoped_identifier
scoped_identifier
crate "crate"
:: "::"
identifier "settings"
:: "::"
identifier "SpotSettings"
; ";"
use_declaration
use "use"
use_wildcard
scoped_identifier
identifier "gtk"
:: "::"
identifier "prelude"
:: "::"
* "*"
; ";"
use_declaration
use "use"
use_wildcard
scoped_identifier
scoped_identifier
identifier "gtk"
:: "::"
identifier "subclass"
:: "::"
identifier "prelude"
:: "::"
* "*"
; ";"
use_declaration
use "use"
scoped_identifier
identifier "gtk"
:: "::"
identifier "CompositeTemplate"
; ";"
use_declaration
use "use"
use_wildcard
scoped_identifier
identifier "libadwaita"
:: "::"
identifier "prelude"
:: "::"
* "*"
; ";"
use_declaration
use "use"
scoped_identifier
super "super"
:: "::"
identifier "SettingsModel"
; ";"
const_item
const "const"
identifier "SETTINGS"
: ":"
reference_type
& "&"
primitive_type "str"
= "="
string_literal
" "\""
string_content "dev.alextren.Spot"
" "\""
; ";"
mod_item (+358 nodes collapsed)
macro_invocation (+35 nodes collapsed)
impl_item (+27 nodes collapsed)
impl_item (+1608 nodes collapsed)
struct_item (+21 nodes collapsed)
impl_item
impl "impl"
type_identifier "Settings"
declaration_list
{ "{"
function_item (+130 nodes collapsed)
function_item (+39 nodes collapsed)
function_item
visibility_modifier
pub "pub"
fn "fn"
identifier "show_self"
parameters
( "("
self_parameter
& "&"
self "self"
) ")"
block
{ "{"
expression_statement
call_expression
field_expression
call_expression
field_expression
self "self"
. "."
field_identifier "dialog"
arguments
( "("
) ")"
. "."
field_identifier "present"
arguments
( "("
reference_expression
& "&"
field_expression
self "self"
. "."
field_identifier "parent"
) ")"
; ";"
} "}"
} "}"
impl_item (+28 nodes collapsed)

After

source_file
use_declaration
use "use"
scoped_identifier
scoped_identifier
scoped_identifier
crate "crate"
:: "::"
identifier "app"
:: "::"
identifier "components"
:: "::"
identifier "EventListener"
; ";"
use_declaration
use "use"
scoped_identifier
scoped_identifier
crate "crate"
:: "::"
identifier "app"
:: "::"
identifier "AppEvent"
; ";"
use_declaration
use "use"
scoped_identifier
scoped_identifier
crate "crate"
:: "::"
identifier "settings"
:: "::"
identifier "SpotSettings"
; ";"
use_declaration
use "use"
use_wildcard
scoped_identifier
identifier "gtk"
:: "::"
identifier "prelude"
:: "::"
* "*"
; ";"
use_declaration
use "use"
use_wildcard
scoped_identifier
scoped_identifier
identifier "gtk"
:: "::"
identifier "subclass"
:: "::"
identifier "prelude"
:: "::"
* "*"
; ";"
use_declaration
use "use"
scoped_identifier
identifier "gtk"
:: "::"
identifier "CompositeTemplate"
; ";"
use_declaration
use "use"
use_wildcard
scoped_identifier
identifier "libadwaita"
:: "::"
identifier "prelude"
:: "::"
* "*"
; ";"
use_declaration
use "use"
scoped_identifier
super "super"
:: "::"
identifier "SettingsModel"
; ";"
const_item
const "const"
identifier "SETTINGS"
: ":"
reference_type
& "&"
primitive_type "str"
= "="
string_literal
" "\""
string_content "dev.alextren.Spot"
" "\""
; ";"
mod_item (+358 nodes collapsed)
macro_invocation (+35 nodes collapsed)
impl_item (+27 nodes collapsed)
impl_item (+1608 nodes collapsed)
struct_item (+21 nodes collapsed)
impl_item
impl "impl"
type_identifier "Settings"
declaration_list
{ "{"
function_item (+130 nodes collapsed)
function_item (+39 nodes collapsed)
function_item
visibility_modifier
pub "pub"
fn "fn"
identifier "show_self"
parameters
( "("
self_parameter
& "&"
self "self"
) ")"
block
{ "{"
expression_statement
call_expression
field_expression
call_expression
field_expression
self "self"
. "."
field_identifier "dialog"
arguments
( "("
) ")"
. "."
field_identifier "present"
arguments
( "("
call_expression
identifier "Some"
arguments
( "("
reference_expression
& "&"
field_expression
self "self"
. "."
field_identifier "parent"
) ")"
) ")"
; ";"
} "}"
} "}"
impl_item (+28 nodes collapsed)