Skip to content

Commit 255bbdb

Browse files
committed
expect
1 parent 2ea01cb commit 255bbdb

File tree

172 files changed

+308
-305
lines changed

Some content is hidden

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

172 files changed

+308
-305
lines changed

examples/rust/custom/benches/play_game.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![allow(clippy::unit_arg)]
1+
#![expect(clippy::unit_arg)]
22

33
#[global_allocator]
44
static ALLOC: dhat::Alloc = dhat::Alloc;

lib/api_auth/src/accept.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use bencher_schema::{
77
};
88
use dropshot::{endpoint, HttpError, RequestContext, TypedBody};
99

10-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
10+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
1111
#[endpoint {
1212
method = OPTIONS,
1313
path = "/v0/auth/accept",

lib/api_auth/src/confirm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use dropshot::{endpoint, HttpError, RequestContext, TypedBody};
1010

1111
use super::CLIENT_TOKEN_TTL;
1212

13-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
13+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
1414
#[endpoint {
1515
method = OPTIONS,
1616
path = "/v0/auth/confirm",

lib/api_auth/src/github.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use super::CLIENT_TOKEN_TTL;
1818

1919
pub const GITHUB_OAUTH2: &str = "GitHub OAuth2";
2020

21-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
21+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
2222
#[endpoint {
2323
method = OPTIONS,
2424
path = "/v0/auth/github",

lib/api_auth/src/login.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use slog::Logger;
1212
use super::AUTH_TOKEN_TTL;
1313
use super::TOKEN_ARG;
1414

15-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
15+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
1616
#[endpoint {
1717
method = OPTIONS,
1818
path = "/v0/auth/login",

lib/api_auth/src/signup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use slog::Logger;
1212
use super::AUTH_TOKEN_TTL;
1313
use super::TOKEN_ARG;
1414

15-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
15+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
1616
#[endpoint {
1717
method = OPTIONS,
1818
path = "/v0/auth/signup",

lib/api_checkout/src/checkout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use bencher_schema::{
1717
};
1818
use dropshot::{endpoint, HttpError, RequestContext, TypedBody};
1919

20-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
20+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
2121
#[endpoint {
2222
method = OPTIONS,
2323
path = "/v0/checkout",

lib/api_organizations/src/allowed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub struct OrgAllowedParams {
2020
pub permission: OrganizationPermission,
2121
}
2222

23-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
23+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
2424
#[endpoint {
2525
method = OPTIONS,
2626
path = "/v0/organizations/{organization}/allowed/{permission}",

lib/api_organizations/src/claim.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub struct OrgClaimParams {
1818
pub organization: ResourceId,
1919
}
2020

21-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
21+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
2222
#[endpoint {
2323
method = OPTIONS,
2424
path = "/v0/organizations/{organization}/claim",

lib/api_organizations/src/members.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub struct OrgMembersQuery {
5353
pub search: Option<Search>,
5454
}
5555

56-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
56+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
5757
#[endpoint {
5858
method = OPTIONS,
5959
path = "/v0/organizations/{organization}/members",
@@ -327,7 +327,7 @@ pub struct OrgMemberParams {
327327
pub user: ResourceId,
328328
}
329329

330-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
330+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
331331
#[endpoint {
332332
method = OPTIONS,
333333
path = "/v0/organizations/{organization}/members/{user}",

lib/api_organizations/src/organizations.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub struct OrganizationsQuery {
4242
pub search: Option<Search>,
4343
}
4444

45-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
45+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
4646
#[endpoint {
4747
method = OPTIONS,
4848
path = "/v0/organizations",
@@ -192,7 +192,7 @@ pub struct OrganizationParams {
192192
pub organization: ResourceId,
193193
}
194194

195-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
195+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
196196
#[endpoint {
197197
method = OPTIONS,
198198
path = "/v0/organizations/{organization}",

lib/api_organizations/src/plan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub struct OrgPlanParams {
3737
pub organization: ResourceId,
3838
}
3939

40-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
40+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
4141
#[endpoint {
4242
method = OPTIONS,
4343
path = "/v0/organizations/{organization}/plan",

lib/api_organizations/src/projects.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub struct OrgProjectsQuery {
5959
pub search: Option<Search>,
6060
}
6161

62-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
62+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
6363
#[endpoint {
6464
method = OPTIONS,
6565
path = "/v0/organizations/{organization}/projects",

lib/api_organizations/src/usage.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub struct OrgUsageParams {
3232
pub organization: ResourceId,
3333
}
3434

35-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
35+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
3636
#[endpoint {
3737
method = OPTIONS,
3838
path = "/v0/organizations/{organization}/usage",
@@ -66,7 +66,7 @@ pub async fn org_usage_get(
6666
Ok(Get::auth_response_ok(json))
6767
}
6868

69-
#[allow(clippy::too_many_lines)]
69+
#[expect(clippy::too_many_lines)]
7070
async fn get_inner(
7171
context: &ApiContext,
7272
path_params: OrgUsageParams,

lib/api_projects/src/alerts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub struct ProjAlertsQuery {
5050
pub archived: Option<bool>,
5151
}
5252

53-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
53+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
5454
#[endpoint {
5555
method = OPTIONS,
5656
path = "/v0/projects/{project}/alerts",
@@ -286,7 +286,7 @@ pub struct ProjAlertParams {
286286
pub alert: AlertUuid,
287287
}
288288

289-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
289+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
290290
#[endpoint {
291291
method = OPTIONS,
292292
path = "/v0/projects/{project}/alerts/{alert}",

lib/api_projects/src/allowed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub struct ProjAllowedParams {
2020
pub permission: ProjectPermission,
2121
}
2222

23-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
23+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
2424
#[endpoint {
2525
method = OPTIONS,
2626
path = "/v0/projects/{project}/allowed/{permission}",

lib/api_projects/src/benchmarks.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub struct ProjBenchmarksQuery {
5656
pub archived: Option<bool>,
5757
}
5858

59-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
59+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
6060
#[endpoint {
6161
method = OPTIONS,
6262
path = "/v0/projects/{project}/benchmarks",
@@ -233,7 +233,7 @@ pub struct ProjBenchmarkParams {
233233
pub benchmark: ResourceId,
234234
}
235235

236-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
236+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
237237
#[endpoint {
238238
method = OPTIONS,
239239
path = "/v0/projects/{project}/benchmarks/{benchmark}",

lib/api_projects/src/branches.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub struct ProjBranchesQuery {
5858
pub archived: Option<bool>,
5959
}
6060

61-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
61+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
6262
#[endpoint {
6363
method = OPTIONS,
6464
path = "/v0/projects/{project}/branches",
@@ -253,7 +253,7 @@ pub struct ProjBranchQuery {
253253
pub head: Option<HeadUuid>,
254254
}
255255

256-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
256+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
257257
#[endpoint {
258258
method = OPTIONS,
259259
path = "/v0/projects/{project}/branches/{branch}",

lib/api_projects/src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
macro_rules! filter_name_id {
22
($name:ident, $query:ident, $table:ident, $name_id:ident) => {
3-
#[allow(unused_qualifications)]
3+
#[expect(unused_qualifications)]
44
match $name_id.try_into().map_err(|e| {
55
bencher_schema::error::issue_error(
66
"Failed to parse name ID",

lib/api_projects/src/measures.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub struct ProjMeasuresQuery {
5555
pub archived: Option<bool>,
5656
}
5757

58-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
58+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
5959
#[endpoint {
6060
method = OPTIONS,
6161
path = "/v0/projects/{project}/measures",
@@ -232,7 +232,7 @@ pub struct ProjMeasureParams {
232232
pub measure: ResourceId,
233233
}
234234

235-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
235+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
236236
#[endpoint {
237237
method = OPTIONS,
238238
path = "/v0/projects/{project}/measures/{measure}",

lib/api_projects/src/metrics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub struct ProjMetricParams {
4040
pub metric: MetricUuid,
4141
}
4242

43-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
43+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
4444
#[endpoint {
4545
method = OPTIONS,
4646
path = "/v0/projects/{project}/metrics/{metric}",

lib/api_projects/src/perf/img.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use http::Response;
1414

1515
use super::ProjPerfParams;
1616

17-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
17+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
1818
#[endpoint {
1919
method = OPTIONS,
2020
path = "/v0/projects/{project}/perf/img",

lib/api_projects/src/perf/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub struct ProjPerfParams {
4848
pub project: ResourceId,
4949
}
5050

51-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
51+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
5252
#[endpoint {
5353
method = OPTIONS,
5454
path = "/v0/projects/{project}/perf",
@@ -152,7 +152,7 @@ struct Times {
152152
end_time: Option<DateTime>,
153153
}
154154

155-
#[allow(clippy::too_many_arguments)]
155+
#[expect(clippy::too_many_arguments)]
156156
async fn perf_results(
157157
context: &ApiContext,
158158
project: &QueryProject,
@@ -219,7 +219,7 @@ async fn perf_results(
219219
Ok(results)
220220
}
221221

222-
#[allow(clippy::too_many_arguments, clippy::too_many_lines)]
222+
#[expect(clippy::too_many_arguments, clippy::too_many_lines)]
223223
async fn perf_query(
224224
context: &ApiContext,
225225
project: &QueryProject,

lib/api_projects/src/plots.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub struct ProjPlotsQuery {
5454
pub search: Option<Search>,
5555
}
5656

57-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
57+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
5858
#[endpoint {
5959
method = OPTIONS,
6060
path = "/v0/projects/{project}/plots",
@@ -239,7 +239,7 @@ pub struct ProjPlotParams {
239239
pub plot: PlotUuid,
240240
}
241241

242-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
242+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
243243
#[endpoint {
244244
method = OPTIONS,
245245
path = "/v0/projects/{project}/plots/{plot}",

lib/api_projects/src/projects.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub struct ProjectsQuery {
4444
pub search: Option<Search>,
4545
}
4646

47-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
47+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
4848
#[endpoint {
4949
method = OPTIONS,
5050
path = "/v0/projects",
@@ -180,7 +180,7 @@ pub struct ProjectParams {
180180
pub project: ResourceId,
181181
}
182182

183-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
183+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
184184
#[endpoint {
185185
method = OPTIONS,
186186
path = "/v0/projects/{project}",

lib/api_projects/src/reports.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub enum ProjReportsSort {
5656
DateTime,
5757
}
5858

59-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
59+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
6060
#[endpoint {
6161
method = OPTIONS,
6262
path = "/v0/projects/{project}/reports",
@@ -305,7 +305,7 @@ pub struct ProjReportParams {
305305
pub report: ReportUuid,
306306
}
307307

308-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
308+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
309309
#[endpoint {
310310
method = OPTIONS,
311311
path = "/v0/projects/{project}/reports/{report}",

lib/api_projects/src/testbeds.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub struct ProjTestbedsQuery {
5555
pub archived: Option<bool>,
5656
}
5757

58-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
58+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
5959
#[endpoint {
6060
method = OPTIONS,
6161
path = "/v0/projects/{project}/testbeds",
@@ -232,7 +232,7 @@ pub struct ProjTestbedParams {
232232
pub testbed: ResourceId,
233233
}
234234

235-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
235+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
236236
#[endpoint {
237237
method = OPTIONS,
238238
path = "/v0/projects/{project}/testbeds/{testbed}",

lib/api_projects/src/thresholds.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub enum ProjThresholdsSort {
5757
Modified,
5858
}
5959

60-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
60+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
6161
#[endpoint {
6262
method = OPTIONS,
6363
path = "/v0/projects/{project}/thresholds",
@@ -321,7 +321,7 @@ pub struct ProjThresholdQuery {
321321
pub model: Option<ModelUuid>,
322322
}
323323

324-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
324+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
325325
#[endpoint {
326326
method = OPTIONS,
327327
path = "/v0/projects/{project}/thresholds/{threshold}",

lib/api_run/src/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use bencher_schema::{
1313
use dropshot::{endpoint, HttpError, RequestContext, TypedBody};
1414
use slog::Logger;
1515

16-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
16+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
1717
#[endpoint {
1818
method = OPTIONS,
1919
path = "/v0/run",

lib/api_server/src/backup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use tokio::{
2121

2222
const BUFFER_SIZE: usize = 1024;
2323

24-
#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
24+
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
2525
#[endpoint {
2626
method = OPTIONS,
2727
path = "/v0/server/backup",

0 commit comments

Comments
 (0)