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

Commit

Permalink
Activate non-default lints once for the entire workspace
Browse files Browse the repository at this point in the history
Using the trick documented here:
EmbarkStudios/rust-ecosystem#22 (comment)
  • Loading branch information
DmitrySamoylov committed Dec 8, 2021
1 parent 1958f1e commit 30b883c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
[alias]
xtask = "run --package xtask --"

[target.'cfg(all())']
rustflags = [
"-Wrust_2018_idioms",
"-Wunused_qualifications",
"-Wclippy::cloned_instead_of_copied",
"-Wclippy::dbg_macro",
"-Wclippy::disallowed_method",
"-Wclippy::disallowed_type",
"-Wclippy::str_to_string",
"-Wclippy::todo",
"-Wclippy::unreadable_literal",
"-Wclippy::unseparated_literal_suffix",
"-Wclippy::wildcard_imports",
]
4 changes: 2 additions & 2 deletions lumeo_api_client/src/apps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ pub struct Application {
impl Client {
pub async fn get_app(&self, app_id: &Uuid) -> Result<Application> {
let path = format!("/v1/apps/{}", app_id);
self.get(&path, Option::<&()>::None).await
self.get(&path, None::<&()>).await
}

pub async fn get_apps(&self, org_id: &Uuid) -> Result<Vec<Application>> {
let path = format!("/v1/orgs/{}/apps", org_id);
self.get(&path, Option::<&()>::None).await
self.get(&path, None::<&()>).await
}
}
2 changes: 1 addition & 1 deletion lumeo_api_client/src/deployments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ where
impl<'de> Visitor<'de> for PipelineVisitor {
type Value = Pipeline;

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

Expand Down
2 changes: 1 addition & 1 deletion lumeo_api_client/src/orgs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ pub struct Organization {

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

0 comments on commit 30b883c

Please sign in to comment.