mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
clippy: Fix redundant field names warnings (#31793)
This commit is contained in:
parent
f55d1d288e
commit
2789e98876
97 changed files with 285 additions and 314 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue