Skip to content

Commit 0909baa

Browse files
committed
correct function parameters for Duration.compare in compiled
1 parent 4a63a87 commit 0909baa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/builtins/compiled/duration.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ use crate::{
44
Duration, TemporalError, TemporalResult,
55
};
66

7+
use core::cmp::Ordering;
8+
79
#[cfg(test)]
810
mod tests;
911

@@ -36,7 +38,7 @@ impl Duration {
3638
let provider = TZ_PROVIDER
3739
.lock()
3840
.map_err(|_| TemporalError::general("Unable to acquire lock"))?;
39-
self.compare_with_provider(&self, two, relative_to, provider)
41+
self.compare_with_provider(&two, relative_to, &*provider)
4042
.map(Into::into)
4143
}
4244
}

0 commit comments

Comments
 (0)