Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Commit bc4dd08

Browse files
Activate non-default lints once for the entire workspace
Using the trick documented here: EmbarkStudios/rust-ecosystem#22 (comment)
1 parent 89b418f commit bc4dd08

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

.cargo/config.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
[alias]
22
xtask = "run --package xtask --"
3+
4+
[target.'cfg(all())']
5+
rustflags = [
6+
"-Wrust_2018_idioms",
7+
"-Wunused_qualifications",
8+
"-Wclippy::cloned_instead_of_copied",
9+
"-Wclippy::dbg_macro",
10+
"-Wclippy::disallowed_method",
11+
"-Wclippy::disallowed_type",
12+
"-Wclippy::str_to_string",
13+
"-Wclippy::todo",
14+
"-Wclippy::unreadable_literal",
15+
"-Wclippy::unseparated_literal_suffix",
16+
"-Wclippy::wildcard_imports",
17+
]

lumeo_api_client/src/apps.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ pub struct Application {
1919
impl Client {
2020
pub async fn get_app(&self, app_id: &Uuid) -> Result<Application> {
2121
let path = format!("/v1/apps/{}", app_id);
22-
self.get(&path, Option::<&()>::None).await
22+
self.get(&path, None::<&()>).await
2323
}
2424

2525
pub async fn get_apps(&self, org_id: &Uuid) -> Result<Vec<Application>> {
2626
let path = format!("/v1/orgs/{}/apps", org_id);
27-
self.get(&path, Option::<&()>::None).await
27+
self.get(&path, None::<&()>).await
2828
}
2929
}

lumeo_api_client/src/deployments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ where
134134
impl<'de> Visitor<'de> for PipelineVisitor {
135135
type Value = Pipeline;
136136

137-
fn expecting(&self, f: &mut fmt::Formatter) -> fmt::Result {
137+
fn expecting(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
138138
write!(f, "a possibly-stringified pipeline definition")
139139
}
140140

lumeo_api_client/src/orgs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ pub struct Organization {
1818

1919
impl Client {
2020
pub async fn get_orgs(&self) -> Result<Vec<Organization>> {
21-
self.get("/v1/orgs", Option::<&()>::None).await
21+
self.get("/v1/orgs", None::<&()>).await
2222
}
2323
}

0 commit comments

Comments
 (0)