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 ...@@ -10,4 +10,6 @@ proc-macro = true
[dependencies] [dependencies]
syn = {version = "1.0.16", features = ["full", "extra-traits"]} syn = {version = "1.0.16", features = ["full", "extra-traits"]}
quote = "1.0.2" quote = "1.0.2"
[dev-dependencies]
log = "0.4.8" log = "0.4.8"
\ No newline at end of file
...@@ -34,8 +34,8 @@ pub fn timed(_attr_ts: TokenStream, fn_ts: TokenStream) -> TokenStream { ...@@ -34,8 +34,8 @@ pub fn timed(_attr_ts: TokenStream, fn_ts: TokenStream) -> TokenStream {
let mut inner = || { #inner_block }; let mut inner = || { #inner_block };
let ret = inner(); let ret = inner();
log::trace!( crate::log::trace!(
"Elapsed {}: {:?}", "Duration of `{}`: {:?}",
#original_func_name, #original_func_name,
timer.elapsed() timer.elapsed()
); );
......
use log;
use micro_timer::timed; use micro_timer::timed;
use std::time::Duration; 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