Skip to content

Commit

Permalink
Ran clippy, fixed things
Browse files Browse the repository at this point in the history
  • Loading branch information
pastjean committed Sep 17, 2018
1 parent 8534fd7 commit 19f6507
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -6,6 +6,7 @@ rust:
- stable
- beta
- nightly

matrix:
allow_failures:
- rust: nightly
Expand Down
2 changes: 1 addition & 1 deletion 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 <pa@stjean.me>"]
license = "MIT/Apache-2.0"
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Expand Up @@ -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
///
Expand Down Expand Up @@ -80,7 +80,7 @@ mod tests {
}
}
}

#[test]
fn request_id_is_consistent_for_same_request() {
let req = TestRequest::default().finish();
Expand Down

0 comments on commit 19f6507

Please sign in to comment.