summaryrefslogtreecommitdiffstats
path: root/vendor/der/debian/patches/fix-tests-feature-time.diff
blob: d78056379838a60109eb4387c8671ea8b8185afe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: fix 'time' feature tests
 The following invocation fails due to Error not being in scope:
 cargo test --all-targets --no-default-features --features time

Author: Emanuele Rocca <ema@debian.org>

Last-Update: 2023-06-30
Index: der/src/asn1/generalized_time.rs
===================================================================
--- der.orig/src/asn1/generalized_time.rs
+++ der/src/asn1/generalized_time.rs
@@ -8,9 +8,12 @@ use crate::{
 };
 use core::time::Duration;
 
+#[cfg(any(feature = "std", feature = "time"))]
+use crate::Error;
+
 #[cfg(feature = "std")]
 use {
-    crate::{asn1::AnyRef, Error},
+    crate::asn1::AnyRef,
     std::time::SystemTime,
 };