aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/textinput.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-11-07 08:47:57 -0500
committerGitHub <noreply@github.com>2018-11-07 08:47:57 -0500
commitda2d9b2228441863feba2af2a60f84d2657fb962 (patch)
tree760c0eb675e95b46890480a9e10bc2c2cc714512 /components/script/textinput.rs
parent618a790050d8eab39e3c44b3d39dfefa7648445e (diff)
parent1855c88d6106c73febec1f5f29e246a75ff2f849 (diff)
downloadservo-da2d9b2228441863feba2af2a60f84d2657fb962.tar.gz
servo-da2d9b2228441863feba2af2a60f84d2657fb962.zip
Auto merge of #22126 - pyfisch:autoformat, r=jdm
Enforce rustfmt on CI <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22126) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/textinput.rs')
-rw-r--r--components/script/textinput.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/components/script/textinput.rs b/components/script/textinput.rs
index 87bdd1d6345..c12c277c9f2 100644
--- a/components/script/textinput.rs
+++ b/components/script/textinput.rs
@@ -295,9 +295,7 @@ impl<T: ClipboardProvider> TextInput<T> {
fn assert_ok_selection(&self) {
debug!(
"edit_point: {:?}, selection_origin: {:?}, direction: {:?}",
- self.edit_point,
- self.selection_origin,
- self.selection_direction
+ self.edit_point, self.selection_origin, self.selection_direction
);
if let Some(begin) = self.selection_origin {
debug_assert!(begin.line < self.lines.len());
@@ -532,8 +530,7 @@ impl<T: ClipboardProvider> TextInput<T> {
fn update_selection_direction(&mut self) {
debug!(
"edit_point: {:?}, selection_origin: {:?}",
- self.edit_point,
- self.selection_origin
+ self.edit_point, self.selection_origin
);
self.selection_direction = if Some(self.edit_point) < self.selection_origin {
SelectionDirection::Backward