Remove "no-std" feature checks
[rust-lightning] / lightning / src / routing / gossip.rs
index 9b4e41ae174d7b8a73cb8f64b7918f62a0dbf01b..9c8fd40af1358f1e1c8ae04646607da68a4e7abe 100644 (file)
@@ -1845,7 +1845,7 @@ impl<L: Deref> NetworkGraph<L> where L::Target: Logger {
                                // NOTE: In the case of no-std, we won't have access to the current UNIX time at the time of removal,
                                // so we'll just set the removal time here to the current UNIX time on the very next invocation
                                // of this function.
-                               #[cfg(feature = "no-std")]
+                               #[cfg(not(feature = "std"))]
                                {
                                        let mut tracked_time = Some(current_time_unix);
                                        core::mem::swap(time, &mut tracked_time);