Skip to content

Commit 6fa7f11

Browse files
committedMay 29, 2019
Deny rust_2018_idioms lints in all crates except for examples.
1 parent 6024851 commit 6fa7f11

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+286
-297
lines changed
 

‎contrib/codegen/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#![feature(crate_visibility_modifier)]
33
#![recursion_limit="256"]
44

5+
#![deny(rust_2018_idioms)]
6+
57
//! # Rocket Contrib - Code Generation
68
//! This crate implements the code generation portion of the Rocket Contrib
79
//! crate. This is for officially sanctioned contributor libraries that require
@@ -24,7 +26,6 @@
2426
//! DATABASE_NAME := (string literal)
2527
//! </pre>
2628
27-
extern crate devise;
2829
extern crate proc_macro;
2930

3031
#[allow(unused_imports)]

‎contrib/lib/src/compression/fairing.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ impl Fairing for Compression {
144144
Ok(rocket.manage(ctxt))
145145
}
146146

147-
fn on_response(&self, request: &Request, response: &mut Response) {
147+
fn on_response(&self, request: &Request<'_>, response: &mut Response<'_>) {
148148
let context = request
149-
.guard::<::rocket::State<Context>>()
149+
.guard::<::rocket::State<'_, Context>>()
150150
.expect("Compression Context registered in on_attach");
151151

152152
super::CompressionUtils::compress_response(request, response, &context.exclusions);

0 commit comments

Comments
 (0)