File tree 1 file changed +4
-4
lines changed
labview-interop/src/types 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ impl LVTime {
74
74
pub const fn from_parts ( seconds : i64 , fractions : u64 ) -> Self {
75
75
Self {
76
76
seconds,
77
- fractions,
77
+ fractions,
78
78
}
79
79
}
80
80
@@ -145,14 +145,14 @@ mod chrono {
145
145
. ok_or ( LVTimeError :: ChronoOutOfRange )
146
146
}
147
147
}
148
-
148
+
149
149
/// Implementation for owned types as well. Probably rarer but kept for backwards
150
150
/// compatability.
151
151
impl TryFrom < LVTime > for DateTime < Utc > {
152
152
type Error = LVTimeError ;
153
153
154
154
fn try_from ( value : LVTime ) -> Result < Self , Self :: Error > {
155
- value. try_into ( )
155
+ ( & value) . try_into ( )
156
156
}
157
157
}
158
158
@@ -237,4 +237,4 @@ mod chrono_tests {
237
237
let lv_time_round_trip = date_time. into ( ) ;
238
238
assert_eq ! ( lv_time, lv_time_round_trip) ;
239
239
}
240
- }
240
+ }
You can’t perform that action at this time.
0 commit comments