Skip to content

Commit 5847cfe

Browse files
committed
Remove old allow attributes
1 parent 3a7da46 commit 5847cfe

File tree

5 files changed

+1
-8
lines changed

5 files changed

+1
-8
lines changed

src/bin/delete-crate.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ use std::io::prelude::*;
1818
use cargo_registry::models::Crate;
1919
use cargo_registry::schema::crates;
2020

21-
#[allow(dead_code)]
2221
fn main() {
2322
let conn = cargo_registry::db::connect_now().unwrap();
2423
conn.transaction::<_, diesel::result::Error, _>(|| {

src/bin/delete-version.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ use std::io::prelude::*;
1818
use cargo_registry::models::{Crate, Version};
1919
use cargo_registry::schema::versions;
2020

21-
#[allow(dead_code)]
2221
fn main() {
2322
let conn = cargo_registry::db::connect_now().unwrap();
2423
conn.transaction::<_, diesel::result::Error, _>(|| {

src/bin/server.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use std::fs::{self, File};
1212
use std::sync::Arc;
1313
use std::sync::mpsc::channel;
1414

15-
#[allow(dead_code)]
1615
fn main() {
1716
// Initialize logging
1817
env_logger::init();

src/bin/update-downloads.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ use cargo_registry::schema::*;
1313

1414
static LIMIT: i64 = 1000;
1515

16-
#[allow(dead_code)] // dead in tests
1716
fn main() {
1817
let daemon = env::args().nth(1).as_ref().map(|s| &s[..]) == Some("daemon");
1918
let sleep = env::args().nth(2).map(|s| s.parse().unwrap());

src/router.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@ pub fn build_router(app: &App) -> R404 {
126126
R404(router)
127127
}
128128

129-
// Can't Copy or Debug the fn.
130-
#[allow(missing_debug_implementations, missing_copy_implementations)]
131129
struct C(pub fn(&mut Request) -> CargoResult<Response>);
132130

133131
impl Handler for C {
@@ -143,8 +141,7 @@ impl Handler for C {
143141
}
144142
}
145143

146-
#[derive(Debug)]
147-
pub struct R<H>(pub Arc<H>);
144+
struct R<H>(pub Arc<H>);
148145

149146
impl<H: Handler> Handler for R<H> {
150147
fn call(&self, req: &mut Request) -> Result<Response, Box<Error + Send>> {

0 commit comments

Comments
 (0)