diff --git a/.idea/misc.xml b/.idea/misc.xml
index 4fb6e2d9..bc8d1cb0 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -7,4 +7,4 @@
-
\ No newline at end of file
+
diff --git a/crates/lox-time/src/python/time.rs b/crates/lox-time/src/python/time.rs
index 9e06ab77..4841dfab 100644
--- a/crates/lox-time/src/python/time.rs
+++ b/crates/lox-time/src/python/time.rs
@@ -120,7 +120,7 @@ impl PyTime {
jd1: f64,
jd2: f64,
) -> PyResult {
- let scale: PyTimeScale = scale.parse()?;
+ let scale: DynTimeScale = scale.parse()?;
Ok(Self(Time::from_two_part_julian_date(scale, jd1, jd2)?))
}
@@ -135,7 +135,7 @@ impl PyTime {
minute: u8,
seconds: f64,
) -> PyResult {
- let scale: PyTimeScale = scale.parse()?;
+ let scale: DynTimeScale = scale.parse()?;
let time = Time::builder_with_scale(scale)
.with_doy(year, day)
.with_hms(hour, minute, seconds)
diff --git a/crates/lox-time/src/utc/transformations.rs b/crates/lox-time/src/utc/transformations.rs
index fe762584..672a97cf 100644
--- a/crates/lox-time/src/utc/transformations.rs
+++ b/crates/lox-time/src/utc/transformations.rs
@@ -6,7 +6,6 @@
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
*/
-use std::convert::Infallible;
use std::sync::OnceLock;
use crate::deltas::TimeDelta;
@@ -62,7 +61,7 @@ impl ToUtc for Utc {
impl ToUtc for Time {
fn to_utc_with_provider(&self, provider: &impl LeapSecondsProvider) -> Result {
let delta = if self < tai_at_utc_1972_01_01() {
- before1972::delta_tai_utc(self)
+ before1972::delta_tai_utc(*self)
} else {
provider.delta_tai_utc(*self)
}