Skip to content

Commit 6737e51

Browse files
committed
Re-order SubAssign impl
1 parent 198ae50 commit 6737e51

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/duration/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,12 @@ impl Sub for Duration {
211211
}
212212
}
213213

214+
impl SubAssign for Duration {
215+
fn sub_assign(&mut self, rhs: Self) {
216+
self.0.sub_assign(rhs.0)
217+
}
218+
}
219+
214220
impl Mul<u32> for Duration {
215221
type Output = Self;
216222

@@ -243,12 +249,6 @@ impl Div<Duration> for u32 {
243249
}
244250
}
245251

246-
impl SubAssign for Duration {
247-
fn sub_assign(&mut self, rhs: Self) {
248-
self.0.sub_assign(rhs.0)
249-
}
250-
}
251-
252252
impl Duration {
253253
/// Creates a new [`Duration`] from the specified number of whole seconds.
254254
pub const fn from_secs(secs: u64) -> Self {

0 commit comments

Comments
 (0)