Skip to content

Commit b79bf93

Browse files
committed
cargo gmt
1 parent f0e889e commit b79bf93

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

rules/algorithm/tgt_refcount.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,17 +133,9 @@ where
133133
}
134134

135135
fn f16<T1: PartialOrd + Clone + ByteRepr>(a0: Ptr<T1>, a1: Ptr<T1>) -> Ptr<T1> {
136-
if a0.read() <= a1.read() {
137-
a0
138-
} else {
139-
a1
140-
}
136+
if a0.read() <= a1.read() { a0 } else { a1 }
141137
}
142138

143139
fn f17<T1: PartialOrd + Clone + ByteRepr>(a0: Ptr<T1>, a1: Ptr<T1>) -> Ptr<T1> {
144-
if a0.read() >= a1.read() {
145-
a0
146-
} else {
147-
a1
148-
}
140+
if a0.read() >= a1.read() { a0 } else { a1 }
149141
}

0 commit comments

Comments
 (0)