use 'Self' keyword to refer to own type (clippy::use_self)
This commit is contained in:
parent
1eb1bd4caa
commit
1b53309d63
2 changed files with 38 additions and 38 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue