Skip to content

Commit 93321f6

Browse files
committed
clippy_fix
1 parent 01f54d0 commit 93321f6

File tree

112 files changed

+164
-164
lines changed

Some content is hidden

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

112 files changed

+164
-164
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ large_include_file = "warn" # Checks for the inclusion of large f
162162
little_endian_bytes = "warn" # Checks for the usage of the to_le_bytes method and/or the function from_le_bytes.
163163
lossy_float_literal = "warn" # Checks for whole number float literals that cannot be represented as the underlying type without loss.
164164
map_err_ignore = "warn" # Checks for instances of map_err(|_| Some::Enum)
165-
map_with_unused_argument_over_range = "warn" # Checks for Iterator::map over ranges without using the parameter which could be more clearly expressed using std::iter::repeat(...).take(...) or std::iter::repeat_n.
165+
map_with_unused_argument_over_ranges = "warn" # Checks for Iterator::map over ranges without using the parameter which could be more clearly expressed using std::iter::repeat(...).take(...) or std::iter::repeat_n.
166166
mem_forget = "warn" # Checks for usage of std::mem::forget(t) where t is Drop or has a field that implements Drop.
167167
missing_assert_message = "warn" # Checks assertions without a custom panic message.
168168
missing_asserts_for_indexing = "warn" # Checks for repeated slice indexing without asserting beforehand that the length is greater than the largest index used to index into the slice.

lib/api_organizations/src/members.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use bencher_schema::{
2222
schema, INVITE_TOKEN_TTL,
2323
};
2424
use diesel::{
25-
BoolExpressionMethods, ExpressionMethods, QueryDsl, RunQueryDsl, TextExpressionMethods,
25+
BoolExpressionMethods as _, ExpressionMethods as _, QueryDsl as _, RunQueryDsl as _, TextExpressionMethods as _,
2626
};
2727
use dropshot::{endpoint, HttpError, Path, Query, RequestContext, TypedBody};
2828
use schemars::JsonSchema;

lib/api_organizations/src/organizations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use bencher_schema::{
1818
schema,
1919
};
2020
use diesel::{
21-
BoolExpressionMethods, ExpressionMethods, QueryDsl, RunQueryDsl, TextExpressionMethods,
21+
BoolExpressionMethods as _, ExpressionMethods as _, QueryDsl as _, RunQueryDsl as _, TextExpressionMethods as _,
2222
};
2323
use dropshot::{endpoint, HttpError, Path, Query, RequestContext, TypedBody};
2424
use schemars::JsonSchema;

lib/api_organizations/src/plan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use bencher_schema::{
2626
},
2727
schema,
2828
};
29-
use diesel::{BelongingToDsl, ExpressionMethods, QueryDsl, RunQueryDsl};
29+
use diesel::{BelongingToDsl as _, ExpressionMethods as _, QueryDsl as _, RunQueryDsl as _};
3030
use dropshot::{endpoint, HttpError, Path, Query, RequestContext, TypedBody};
3131
use schemars::JsonSchema;
3232
use serde::Deserialize;

lib/api_organizations/src/projects.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ use bencher_schema::{
2727
schema,
2828
};
2929
use diesel::{
30-
BelongingToDsl, BoolExpressionMethods, ExpressionMethods, QueryDsl, RunQueryDsl,
31-
TextExpressionMethods,
30+
BelongingToDsl as _, BoolExpressionMethods as _, ExpressionMethods as _, QueryDsl as _, RunQueryDsl as _,
31+
TextExpressionMethods as _,
3232
};
3333
use dropshot::{endpoint, HttpError, Path, Query, RequestContext, TypedBody};
3434
use schemars::JsonSchema;

lib/api_organizations/src/usage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use bencher_schema::{
1818
user::auth::{AuthUser, BearerToken},
1919
},
2020
};
21-
use diesel::{BelongingToDsl, RunQueryDsl};
21+
use diesel::{BelongingToDsl as _, RunQueryDsl as _};
2222
use dropshot::{endpoint, HttpError, Path, RequestContext};
2323
use schemars::JsonSchema;
2424
use serde::Deserialize;

lib/api_projects/src/alerts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use bencher_schema::{
1717
},
1818
schema,
1919
};
20-
use diesel::{BoolExpressionMethods, ExpressionMethods, QueryDsl, RunQueryDsl, SelectableHelper};
20+
use diesel::{BoolExpressionMethods as _, ExpressionMethods as _, QueryDsl as _, RunQueryDsl as _, SelectableHelper as _};
2121
use dropshot::{endpoint, HttpError, Path, Query, RequestContext, TypedBody};
2222
use schemars::JsonSchema;
2323
use serde::Deserialize;
@@ -190,7 +190,7 @@ fn get_ls_query<'q>(
190190
.and(schema::testbed::archived.is_null())
191191
.and(schema::measure::archived.is_null()),
192192
);
193-
};
193+
}
194194

195195
match pagination_params.order() {
196196
ProjAlertsSort::Created => match pagination_params.direction {

lib/api_projects/src/benchmarks.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ use bencher_schema::{
2222
schema,
2323
};
2424
use diesel::{
25-
BelongingToDsl, BoolExpressionMethods, ExpressionMethods, QueryDsl, RunQueryDsl,
26-
TextExpressionMethods,
25+
BelongingToDsl as _, BoolExpressionMethods as _, ExpressionMethods as _, QueryDsl as _, RunQueryDsl as _,
26+
TextExpressionMethods as _,
2727
};
2828
use dropshot::{endpoint, HttpError, Path, Query, RequestContext, TypedBody};
2929
use schemars::JsonSchema;
@@ -169,7 +169,7 @@ fn get_ls_query<'q>(
169169
query = query.filter(schema::benchmark::archived.is_not_null());
170170
} else {
171171
query = query.filter(schema::benchmark::archived.is_null());
172-
};
172+
}
173173

174174
match pagination_params.order() {
175175
ProjBenchmarksSort::Name => match pagination_params.direction {

lib/api_projects/src/branches.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ use bencher_schema::{
2323
schema,
2424
};
2525
use diesel::{
26-
BelongingToDsl, BoolExpressionMethods, ExpressionMethods, QueryDsl, RunQueryDsl,
27-
TextExpressionMethods,
26+
BelongingToDsl as _, BoolExpressionMethods as _, ExpressionMethods as _, QueryDsl as _, RunQueryDsl as _,
27+
TextExpressionMethods as _,
2828
};
2929
use dropshot::{endpoint, HttpError, Path, Query, RequestContext, TypedBody};
3030
use schemars::JsonSchema;
@@ -178,7 +178,7 @@ fn get_ls_query<'q>(
178178
query = query.filter(schema::branch::archived.is_not_null());
179179
} else {
180180
query = query.filter(schema::branch::archived.is_null());
181-
};
181+
}
182182

183183
match pagination_params.order() {
184184
ProjBranchesSort::Name => match pagination_params.direction {

lib/api_projects/src/measures.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ use bencher_schema::{
2121
schema,
2222
};
2323
use diesel::{
24-
BelongingToDsl, BoolExpressionMethods, ExpressionMethods, QueryDsl, RunQueryDsl,
25-
TextExpressionMethods,
24+
BelongingToDsl as _, BoolExpressionMethods as _, ExpressionMethods as _, QueryDsl as _, RunQueryDsl as _,
25+
TextExpressionMethods as _,
2626
};
2727
use dropshot::{endpoint, HttpError, Path, Query, RequestContext, TypedBody};
2828
use schemars::JsonSchema;
@@ -168,7 +168,7 @@ fn get_ls_query<'q>(
168168
query = query.filter(schema::measure::archived.is_not_null());
169169
} else {
170170
query = query.filter(schema::measure::archived.is_null());
171-
};
171+
}
172172

173173
match pagination_params.order() {
174174
ProjMeasuresSort::Name => match pagination_params.direction {

0 commit comments

Comments
 (0)