Fix unused macro warnings

This commit is contained in:
Francis Lalonde 2019-01-26 08:10:53 -05:00
parent 54acee9f62
commit 9c50fe0ffc
3 changed files with 1 additions and 4 deletions

View File

@ -121,7 +121,6 @@ Notes about labels:
Metric inputs are usually setup statically upon application startup.
```rust
#[macro_use]
extern crate dipstick;
use dipstick::*;

View File

@ -60,7 +60,6 @@ fn main() {
Persistent apps wanting to declare static metrics will prefer using the `metrics!` macro:
```rust
#[macro_use]
extern crate dipstick;
use dipstick::*;
@ -70,7 +69,7 @@ metrics! { METRICS = "my_app" => {
}
fn main() {
METRICS.set_target(Graphite::send_to("localhost:2003").expect("connected").metrics());
METRICS.target(Graphite::send_to("localhost:2003").expect("connected").metrics());
COUNTER.count(32);
}
```

View File

@ -1,7 +1,6 @@
//! A dropwizard-like configuration using three buckets
//! aggregating one, five and fifteen minutes of data.
#[macro_use]
extern crate dipstick;
use std::time::Duration;