We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
convert
1 parent 3343e85 commit 8cbf0dbCopy full SHA for 8cbf0db
tests/convert.rs
@@ -0,0 +1,7 @@
1
+use rstest::rstest;
2
+use time::convert::*;
3
+
4
+#[rstest]
5
+fn issue_749() {
6
+ assert_eq!(Nanosecond::per(Second), 1_000_000_000u32);
7
+}
tests/main.rs
@@ -112,6 +112,7 @@ require_all_features! {
112
}}
113
}
114
115
+ mod convert;
116
mod date;
117
mod derives;
118
mod duration;
time-core/src/convert.rs
@@ -99,7 +99,7 @@ macro_rules! impl_per {
99
const VALUE: $float_output = $float_value;
100
})+
101
102
- impl DefaultOutput<$larger> for $t {
+ impl DefaultOutput<$t> for $larger {
103
type Output = $default_output;
104
105
)+
0 commit comments