diff options
author | Isis Lovecruft <isis@torproject.org> | 2018-06-18 18:33:49 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-20 07:55:12 -0400 |
commit | 4971d7afa61772137eee880aa20f3b849bd8b9ac (patch) | |
tree | 126e3f444e5641cdb18ceb31be1a6ad1c66a72dd /src/rust/tor_log | |
parent | 38cb638c325bc2612befc8176c545b1bcae9834f (diff) | |
download | tor-4971d7afa61772137eee880aa20f3b849bd8b9ac.tar.gz tor-4971d7afa61772137eee880aa20f3b849bd8b9ac.zip |
rust: Remove redundant "testing" feature from tor_log crate.
It was synonymous with the builtin "test" feature.
* FIXES #26399: https://bugs.torproject.org/26399
Diffstat (limited to 'src/rust/tor_log')
-rw-r--r-- | src/rust/tor_log/Cargo.toml | 1 | ||||
-rw-r--r-- | src/rust/tor_log/tor_log.rs | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/rust/tor_log/Cargo.toml b/src/rust/tor_log/Cargo.toml index 971cd658b1..9d06299c05 100644 --- a/src/rust/tor_log/Cargo.toml +++ b/src/rust/tor_log/Cargo.toml @@ -9,7 +9,6 @@ path = "lib.rs" crate_type = ["rlib", "staticlib"] [features] -testing = [] [dependencies] libc = "0.2.39" diff --git a/src/rust/tor_log/tor_log.rs b/src/rust/tor_log/tor_log.rs index 1fdc0026bf..ad6725f0f2 100644 --- a/src/rust/tor_log/tor_log.rs +++ b/src/rust/tor_log/tor_log.rs @@ -88,7 +88,7 @@ pub fn tor_log_msg_impl( /// This implementation is used when compiling for actual use, as opposed to /// testing. -#[cfg(all(not(test), not(feature = "testing")))] +#[cfg(not(test))] pub mod log { use libc::{c_char, c_int}; use super::LogDomain; @@ -142,7 +142,7 @@ pub mod log { /// This module exposes no-op functionality for testing other Rust modules /// without linking to C. -#[cfg(any(test, feature = "testing"))] +#[cfg(test)] pub mod log { use libc::{c_char, c_int}; use super::LogDomain; |