Skip to content

Commit 13991b7

Browse files
committed
Allow clippy::needless_doctest_main lint
1 parent 90a8aa2 commit 13991b7

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

diesel/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,12 @@
103103
)]
104104
// Clippy lints
105105
#![allow(
106+
clippy::match_same_arms,
107+
clippy::needless_doctest_main,
106108
clippy::option_map_unwrap_or_else,
107109
clippy::option_map_unwrap_or,
108-
clippy::match_same_arms,
109-
clippy::type_complexity,
110-
clippy::redundant_field_names
110+
clippy::redundant_field_names,
111+
clippy::type_complexity
111112
)]
112113
#![cfg_attr(test, allow(clippy::option_map_unwrap_or, clippy::result_unwrap_used))]
113114
#![warn(

diesel_cli/src/infer_schema_internals/information_schema.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ use super::inference;
1616
use super::table_data::TableName;
1717

1818
pub trait UsesInformationSchema: Backend {
19-
type TypeColumn: SelectableExpression<
20-
self::information_schema::columns::table,
21-
SqlType = sql_types::Text,
22-
> + NonAggregate
19+
type TypeColumn: SelectableExpression<self::information_schema::columns::table, SqlType = sql_types::Text>
20+
+ NonAggregate
2321
+ QueryId
2422
+ QueryFragment<Self>;
2523

diesel_cli/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
// Clippy lints
44
#![allow(clippy::option_map_unwrap_or_else, clippy::option_map_unwrap_or)]
55
#![warn(
6-
clippy::wrong_pub_self_convention,
6+
clippy::if_not_else,
7+
clippy::items_after_statements,
78
clippy::mut_mut,
89
clippy::non_ascii_literal,
910
clippy::similar_names,
1011
clippy::unicode_not_nfc,
11-
clippy::if_not_else,
12-
clippy::items_after_statements,
13-
clippy::used_underscore_binding
12+
clippy::used_underscore_binding,
13+
clippy::wrong_pub_self_convention
1414
)]
1515
#![cfg_attr(test, allow(clippy::result_unwrap_used))]
1616

diesel_derives/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#![deny(warnings, missing_copy_implementations)]
44
// Clippy lints
55
#![allow(
6+
clippy::needless_doctest_main,
67
clippy::needless_pass_by_value,
78
clippy::option_map_unwrap_or_else,
89
clippy::option_map_unwrap_or

0 commit comments

Comments
 (0)