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

This commit is contained in:
Daniel Eades 2024-04-15 21:05:30 +01:00 committed by Jeremy Soller
parent 1eb1bd4caa
commit 1b53309d63
2 changed files with 38 additions and 38 deletions

View file

@ -1092,8 +1092,8 @@ pub struct State {
impl State {
/// Creates a new [`State`].
pub fn new() -> State {
State {
pub fn new() -> Self {
Self {
modifiers: Modifiers::empty(),
click: None,
dragging: None,