Commit d61f640b authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

Add contract that `log` is an export from the client crate

parent 011cdfa0cfa0
......@@ -10,4 +10,6 @@ proc-macro = true
[dependencies]
syn = {version = "1.0.16", features = ["full", "extra-traits"]}
quote = "1.0.2"
[dev-dependencies]
log = "0.4.8"
\ No newline at end of file
......@@ -34,8 +34,8 @@ pub fn timed(_attr_ts: TokenStream, fn_ts: TokenStream) -> TokenStream {
let mut inner = || { #inner_block };
let ret = inner();
log::trace!(
"Elapsed {}: {:?}",
crate::log::trace!(
"Duration of `{}`: {:?}",
#original_func_name,
timer.elapsed()
);
......
use log;
use micro_timer::timed;
use std::time::Duration;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment