aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-02-21 12:17:01 +0100
committerAlex Auvolat <alex@adnab.me>2022-02-21 12:17:01 +0100
commit3535d15bbd006fb3b932cf4a72418afaa50b4dcc (patch)
treea832130c9e82fc932cdae4e4def7dc31c97015b7
parentf4397165000786c4f33478654d6ad9314434dc1a (diff)
downloadnetapp-3535d15bbd006fb3b932cf4a72418afaa50b4dcc.tar.gz
netapp-3535d15bbd006fb3b932cf4a72418afaa50b4dcc.zip
Fix imports; rust stable in CI
-rw-r--r--.drone.yml6
-rw-r--r--Cargo.toml2
-rw-r--r--src/server.rs2
3 files changed, 5 insertions, 5 deletions
diff --git a/.drone.yml b/.drone.yml
index ce7652b..d00dad3 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -17,7 +17,7 @@ steps:
- git checkout $DRONE_COMMIT
- name: style
- image: rustlang/rust:nightly
+ image: rust:1.58-buster
environment:
CARGO_HOME: /drone/cargo
commands:
@@ -28,7 +28,7 @@ steps:
- cargo clippy --example basalt --all-features -- --deny warnings
- name: build
- image: rustlang/rust:nightly
+ image: rust:1.58-buster
environment:
CARGO_HOME: /drone/cargo
commands:
@@ -41,7 +41,7 @@ steps:
- cargo build --example basalt --features "basalt"
- name: test
- image: rustlang/rust:nightly
+ image: rust:1.58-buster
environment:
CARGO_HOME: /drone/cargo
commands:
diff --git a/Cargo.toml b/Cargo.toml
index beb0959..8eb32db 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,7 +17,7 @@ name = "netapp"
[features]
default = []
basalt = ["lru", "rand"]
-telemetry = ["opentelemetry", "opentelemetry-contrib"]
+telemetry = ["opentelemetry", "opentelemetry-contrib", "rand"]
[dependencies]
futures = "0.3.17"
diff --git a/src/server.rs b/src/server.rs
index eb70057..0c0b230 100644
--- a/src/server.rs
+++ b/src/server.rs
@@ -7,7 +7,7 @@ use log::{debug, trace};
#[cfg(feature = "telemetry")]
use opentelemetry::{
- trace::{FutureExt, Span, SpanKind, TraceContextExt, TraceId, Tracer},
+ trace::{FutureExt, SpanKind, TraceContextExt, TraceId, Tracer},
Context, KeyValue,
};
#[cfg(feature = "telemetry")]