Skip to content

Commit c66f6e2

Browse files
authored
Merge pull request #881 from jtgeibel/disallow-trivial-casts
Disallow trivial casts
2 parents 7a4a654 + f316528 commit c66f6e2

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/krate.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,6 @@ impl Model for Crate {
780780
}
781781

782782
/// Handles the `GET /crates` route.
783-
#[allow(trivial_casts)]
784783
pub fn index(req: &mut Request) -> CargoResult<Response> {
785784
use diesel::expression::AsExpression;
786785
use diesel::types::Bool;

src/util/errors.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ where
105105
}
106106

107107
impl<T, E: CargoError> ChainError<T> for Result<T, E> {
108-
#[allow(trivial_casts)]
109108
fn chain_error<E2, C>(self, callback: C) -> CargoResult<T>
110109
where
111110
E2: CargoError,

0 commit comments

Comments
 (0)