Unverified Commit f3e05625 authored by Zelda Hessler's avatar Zelda Hessler Committed by GitHub
Browse files

Fix clippy lints and run formatter (#2080)

* fix: clippy lints in integration tests
format: integration tests

* fix: clippy lints in runtime crates
format: runtime crates

* fix: clippy lints in tools
format: tools

* fix: undo clippy lint change that doesn't compile with tracing v0.1
parent a15ce735
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -115,11 +115,11 @@ impl CredentialProcessProvider {

        let mut command = if cfg!(windows) {
            let mut command = Command::new("cmd.exe");
            command.args(&["/C", self.command.unredacted()]);
            command.args(["/C", self.command.unredacted()]);
            command
        } else {
            let mut command = Command::new("sh");
            command.args(&["-c", self.command.unredacted()]);
            command.args(["-c", self.command.unredacted()]);
            command
        };

+2 −2
Original line number Diff line number Diff line
@@ -123,9 +123,9 @@ pub(super) fn resolve_chain<'a>(
    // - There is not default profile
    // Then:
    // - Treat this situation as if no profiles were defined
    if profile_override == None
    if profile_override.is_none()
        && profile_set.selected_profile() == "default"
        && profile_set.get_profile("default") == None
        && profile_set.get_profile("default").is_none()
    {
        tracing::debug!("No default profile defined");
        return Err(ProfileFileError::NoProfilesDefined);
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ fn validate_identifier(input: &str) -> Result<&str, ()> {
                    .iter()
                    .any(|c| *c == ch)
        })
        .then(|| input)
        .then_some(input)
        .ok_or(())
}

+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ async fn set_correct_headers() {
        .await;
    let req = handler.expect_request();
    assert_ok(validate_headers(
        &req.headers(),
        req.headers(),
        [
            (
                "x-amz-sha256-tree-hash",
+6 −1
Original line number Diff line number Diff line
@@ -55,7 +55,12 @@ async fn client_is_debug() {
async fn client_is_clone() {
    let conf = kms::Config::builder().build();
    let client = kms::Client::from_conf(conf);
    let _ = client.clone();

    fn is_clone(it: impl Clone) {
        drop(it)
    }

    is_clone(client);
}

#[test]
Loading