Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/syntax_highlighting/injector.rs')
-rw-r--r--crates/ide/src/syntax_highlighting/injector.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/ide/src/syntax_highlighting/injector.rs b/crates/ide/src/syntax_highlighting/injector.rs
index a902fd717f..c30f797324 100644
--- a/crates/ide/src/syntax_highlighting/injector.rs
+++ b/crates/ide/src/syntax_highlighting/injector.rs
@@ -53,11 +53,7 @@ impl<T> Delta<T> {
where
T: Ord + Sub<Output = T>,
{
- if to >= from {
- Delta::Add(to - from)
- } else {
- Delta::Sub(from - to)
- }
+ if to >= from { Delta::Add(to - from) } else { Delta::Sub(from - to) }
}
}