diff options
author | Ekta Siwach <137225906+ektuu@users.noreply.github.com> | 2024-03-28 14:36:02 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-28 09:06:02 +0000 |
commit | 1bc63801e79273bd976530af498a43f0b9c7c93b (patch) | |
tree | 18e1a549672397b72e1fec7d462ded5cc3bbf418 /components/script/dom/textcontrol.rs | |
parent | f18317078601afad18188f1bad0a33e59ba8303c (diff) | |
download | servo-1bc63801e79273bd976530af498a43f0b9c7c93b.tar.gz servo-1bc63801e79273bd976530af498a43f0b9c7c93b.zip |
fix redundant closures in component/script/dom (#31917)
* fixed unnecessary conversions
* resolved conflicts
* resolved conflicts
* fix redundant closures in component/script/dom
* resolved conflicts
* fixed formatting
Diffstat (limited to 'components/script/dom/textcontrol.rs')
-rw-r--r-- | components/script/dom/textcontrol.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/textcontrol.rs b/components/script/dom/textcontrol.rs index e4f8546a721..7f0fc3dc11e 100644 --- a/components/script/dom/textcontrol.rs +++ b/components/script/dom/textcontrol.rs @@ -143,7 +143,7 @@ impl<'a, E: TextControlElement> TextControlSelection<'a, E> { self.set_range( Some(start), Some(end), - direction.map(|d| SelectionDirection::from(d)), + direction.map(SelectionDirection::from), None, ); Ok(()) |