Skip to content

Commit 3a27124

Browse files
committed
Appease clippy
Signed-off-by: Ryan Levick <[email protected]>
1 parent ff7f08d commit 3a27124

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919

2020
env:
2121
CARGO_TERM_COLOR: always
22-
CARGO_COMPONENT_VERSION: 0.14.0
22+
CARGO_COMPONENT_VERSION: 0.21.1
2323
RUST_VERSION: "1.86"
2424
WASI_SDK_VERSION: "22.0"
2525
WASI_SDK_RELEASE: wasi-sdk-22

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ concurrency: ${{ github.workflow }}
1818

1919
env:
2020
CARGO_TERM_COLOR: always
21-
CARGO_COMPONENT_VERSION: 0.14.0
21+
CARGO_COMPONENT_VERSION: 0.21.1
2222
RUST_VERSION: "1.86"
2323
WASI_SDK_VERSION: "22.0"
2424
WASI_SDK_RELEASE: wasi-sdk-22

build.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,7 @@ fn run<'a, 'b>(
107107

108108
cmd.arg("-c");
109109
cmd.envs(env);
110-
let c = args
111-
.into_iter()
112-
.map(Into::into)
113-
.collect::<Vec<&str>>()
114-
.join(" ");
110+
let c = args.into_iter().collect::<Vec<_>>().join(" ");
115111
cmd.arg(&c);
116112

117113
(c, cmd.output().unwrap())

crates/router/src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ enum RoutingResult<'router, 'path> {
8888
}
8989

9090
/// Create a router from the Spin manifest.
91-
fn router<'a>(
92-
manifest: &spin_manifest::schema::v2::AppManifest,
93-
base: &str,
94-
) -> anyhow::Result<Router> {
91+
fn router(manifest: &spin_manifest::schema::v2::AppManifest, base: &str) -> anyhow::Result<Router> {
9592
let routes = manifest
9693
.triggers
9794
.get("http")
@@ -186,7 +183,7 @@ fn calculate_default_headers<'a>(
186183
};
187184
let host = req
188185
.headers()
189-
.get(&"Host".to_owned())
186+
.get("Host")
190187
.into_iter()
191188
.find(|v| !v.is_empty())
192189
.map(String::from_utf8)

0 commit comments

Comments
 (0)