mirror of https://github.com/fralalonde/dipstick
Fix unused macro warnings
This commit is contained in:
parent
54acee9f62
commit
9c50fe0ffc
|
@ -121,7 +121,6 @@ Notes about labels:
|
|||
Metric inputs are usually setup statically upon application startup.
|
||||
|
||||
```rust
|
||||
#[macro_use]
|
||||
extern crate dipstick;
|
||||
use dipstick::*;
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
```
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue