From 19f6507f6d3bc9d1ebb74a6054eac231e4faaac7 Mon Sep 17 00:00:00 2001 From: Pierre-Alexandre St-Jean Date: Mon, 17 Sep 2018 16:43:13 -0400 Subject: [PATCH] Ran clippy, fixed things --- .travis.yml | 1 + Cargo.toml | 2 +- src/lib.rs | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 92197e1..f7e2f64 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ rust: - stable - beta - nightly + matrix: allow_failures: - rust: nightly diff --git a/Cargo.toml b/Cargo.toml index b520569..e6937a2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "actix-web-requestid" description = "Request ID middleware for actix-web" -version = "0.1.0" +version = "0.1.1" authors = ["Pierre-Alexandre St-Jean "] license = "MIT/Apache-2.0" readme = "README.md" diff --git a/src/lib.rs b/src/lib.rs index e0046fa..31098bb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,7 +8,7 @@ use rand::distributions::Alphanumeric; use rand::Rng; /// The header set by the middleware -pub const REQUEST_ID_HEADER : &'static str = "request-id"; +pub const REQUEST_ID_HEADER : &str = "request-id"; /// The HTTP Request ID /// @@ -80,7 +80,7 @@ mod tests { } } } - + #[test] fn request_id_is_consistent_for_same_request() { let req = TestRequest::default().finish();