diff options
author | Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> | 2024-03-21 00:05:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-20 23:05:29 +0000 |
commit | 2789e9887666a05695778bd9d822616985b40dbc (patch) | |
tree | 69400ac55fd84db0ec60e69d71d17f9e6d221e99 /components/script/textinput.rs | |
parent | f55d1d288e4ede7da3090e853a0a0f6aab42c113 (diff) | |
download | servo-2789e9887666a05695778bd9d822616985b40dbc.tar.gz servo-2789e9887666a05695778bd9d822616985b40dbc.zip |
clippy: Fix redundant field names warnings (#31793)
Diffstat (limited to 'components/script/textinput.rs')
-rw-r--r-- | components/script/textinput.rs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/components/script/textinput.rs b/components/script/textinput.rs index b418c37466a..112161d76eb 100644 --- a/components/script/textinput.rs +++ b/components/script/textinput.rs @@ -270,10 +270,10 @@ impl<T: ClipboardProvider> TextInput<T> { edit_point: Default::default(), selection_origin: None, multiline: lines == Lines::Multiple, - clipboard_provider: clipboard_provider, - max_length: max_length, - min_length: min_length, - selection_direction: selection_direction, + clipboard_provider, + max_length, + min_length, + selection_direction, was_last_change_by_set_content: true, }; i.set_content(initial); @@ -1093,10 +1093,7 @@ impl<T: ClipboardProvider> TextInput<T> { } }); - TextPoint { - line: line, - index: index, - } + TextPoint { line, index } } pub fn set_selection_range(&mut self, start: u32, end: u32, direction: SelectionDirection) { |