summaryrefslogtreecommitdiff
path: root/src/rust/protover
diff options
context:
space:
mode:
authorChelsea Holland Komlo <me@chelseakomlo.com>2017-12-16 20:22:21 -0500
committerChelsea Holland Komlo <me@chelseakomlo.com>2017-12-21 15:29:33 -0500
commit71a53761415885b3d5f290c3996d1f1634364f8e (patch)
treef283707eea943ca8e250be702f851f09febb0b15 /src/rust/protover
parent0e032fe9ea494ab03e5db5ca901ddbddd147eb19 (diff)
downloadtor-71a53761415885b3d5f290c3996d1f1634364f8e.tar.gz
tor-71a53761415885b3d5f290c3996d1f1634364f8e.zip
move macro body to inline rust function
Diffstat (limited to 'src/rust/protover')
-rw-r--r--src/rust/protover/lib.rs2
-rw-r--r--src/rust/protover/protover.rs2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/rust/protover/lib.rs b/src/rust/protover/lib.rs
index a9e8e1ee64..05687c1fbf 100644
--- a/src/rust/protover/lib.rs
+++ b/src/rust/protover/lib.rs
@@ -26,6 +26,8 @@ extern crate libc;
extern crate smartlist;
extern crate external;
extern crate tor_allocate;
+
+#[macro_use]
extern crate tor_log;
mod protover;
diff --git a/src/rust/protover/protover.rs b/src/rust/protover/protover.rs
index bb2b8f056a..33d49ea485 100644
--- a/src/rust/protover/protover.rs
+++ b/src/rust/protover/protover.rs
@@ -6,7 +6,7 @@ use std::fmt;
use std::collections::{HashMap, HashSet};
use std::string::String;
-use tor_log::*;
+use tor_log::{LogSeverity, LogDomain};
use external::c_tor_version_as_new_as;
/// The first version of Tor that included "proto" entries in its descriptors.