Skip to content

Commit 3971369

Browse files
committed
Import FromStr trait in tests to make --features=from_str tests pass
1 parent 6a94013 commit 3971369

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/acceleration.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ mod test {
120120

121121
use crate::{speed::Speed, test_utils::assert_almost_eq, *};
122122

123+
#[cfg(feature = "from_str")]
124+
use std::str::FromStr;
125+
123126
// Metric
124127
#[test]
125128
fn speed_over_time() {

0 commit comments

Comments
 (0)