Unverified Commit e7a0f1fa authored by Russell Cohen's avatar Russell Cohen Committed by GitHub
Browse files

Update Rust version (#276)

* Update Rust version

* wip

* Refactor handling of clippy lints

* Delete old version of clippy lints

* Delete unused code
parent 5cbfbf58
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ on: [push]
name: CI

env:
  rust_version: 1.50.0
  rust_version: 1.51.0
  java_version: 14

jobs:
+1 −1
Original line number Diff line number Diff line
@@ -230,7 +230,7 @@ pub enum UserAgentStageError {
    #[error("User agent missing from property bag")]
    UserAgentMissing,
    #[error("Provided user agent header was invalid")]
    InvalidUAHeader(#[from] InvalidHeaderValue),
    InvalidHeader(#[from] InvalidHeaderValue),
}

lazy_static::lazy_static! {
+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ tasks.register<Exec>("cargoDocs") {
tasks.register<Exec>("cargoClippy") {
    workingDir("build/smithyprojections/sdk-codegen-test/")
    // disallow warnings
    commandLine("cargo", "clippy", "--", "-D", "warnings", "-Aclippy::upper_case_acronyms", "-Aclippy::large-enum-variant")
    commandLine("cargo", "clippy", "--", "-D", "warnings")
    dependsOn("assemble")
}

+1 −0
Original line number Diff line number Diff line
@@ -118,6 +118,7 @@ class PubUseEndpoint(private val runtimeConfig: RuntimeConfig) : LibRsCustomizat
                    CargoDependency.SmithyHttp(runtimeConfig).asType()
                )
            }
            else -> emptySection
        }
    }
}
+1 −0
Original line number Diff line number Diff line
@@ -104,6 +104,7 @@ class PubUseCredentials(private val runtimeConfig: RuntimeConfig) : LibRsCustomi
    override fun section(section: LibRsSection): Writable {
        return when (section) {
            is LibRsSection.Body -> writable { rust("pub use #T::Credentials;", awsAuth(runtimeConfig).asType()) }
            else -> emptySection
        }
    }
}
Loading