Skip to content

Commit 1effaa2

Browse files
authored
Merge pull request #2680 from fermyon/rust-1-80-changes
Changes need to make Rust and Clippy happy on Rust 1.80
2 parents ca22ddc + de890c2 commit 1effaa2

File tree

6 files changed

+11
-13
lines changed

6 files changed

+11
-13
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/componentize/src/abi_conformance/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
//! (i.e. inbound requests) or by the host (i.e. outbound requests).
1313
//!
1414
//! - For a guest-implemented function, the host will call the function and assert the result matches what is
15-
//! expected (see [`Report::inbound_http`] for an example).
15+
//! expected (see [`Report::inbound_http`] for an example).
1616
//!
1717
//! - For a host-implemented function, the host will call a guest-implemented function according to the specified
18-
//! [`InvocationStyle`] with a set of arguments indicating which host function to call and with what arguments.
19-
//! The host then asserts that host function was indeed called with the expected arguments (see
20-
//! [`Report::http`] for an example).
18+
//! [`InvocationStyle`] with a set of arguments indicating which host function to call and with what arguments.
19+
//! The host then asserts that host function was indeed called with the expected arguments (see
20+
//! [`Report::http`] for an example).
2121
2222
#![deny(warnings)]
2323

@@ -88,7 +88,7 @@ pub struct TestConfig {
8888
/// - Guest-implemented exports which behave as prescribed by the test (e.g. `inbound_http` and `inbound_redis`)
8989
///
9090
/// - Host-implemented imports which are called by the guest with the arguments specified by the host
91-
/// (e.g. `http`)
91+
/// (e.g. `http`)
9292
#[derive(Serialize, PartialEq, Eq, Debug)]
9393
pub struct Report {
9494
/// Result of the Spin inbound HTTP test

crates/core/tests/integration_test.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ async fn test_host_component_data_update() {
160160
}
161161

162162
#[tokio::test(flavor = "multi_thread")]
163-
#[cfg(not(tarpaulin))]
164163
async fn test_panic() {
165164
let err = run_core_wasi_test(["panic"], |_| {}).await.unwrap_err();
166165
let trap = err.downcast::<Trap>().expect("trap");

crates/key-value-azure/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub enum KeyValueAzureCosmosAuthOptions {
6161
///
6262
/// Common across each:
6363
/// - `AZURE_AUTHORITY_HOST`: (optional) the host for the identity provider. For example, for Azure public cloud the host defaults to "https://login.microsoftonline.com".
64-
/// See also: https://github.com/Azure/azure-sdk-for-rust/blob/main/sdk/identity/README.md
64+
/// See also: https://github.com/Azure/azure-sdk-for-rust/blob/main/sdk/identity/README.md
6565
Environmental,
6666
}
6767

crates/trigger/src/runtime_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ impl TriggerHooks for SummariseRuntimeConfigHook {
346346
for (id, opt) in &opt.sqlite_databases {
347347
opts.push(Self::summarise_sqlite(id, opt));
348348
}
349-
for opt in &opt.llm_compute {
349+
if let Some(opt) = &opt.llm_compute {
350350
opts.push(Self::summarise_llm(opt));
351351
}
352352
}

tests/integration.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,6 @@ route = "/..."
10381038

10391039
/// Build an app whose component `workdir` is a subdirectory.
10401040
#[test]
1041-
#[cfg(not(tarpaulin))]
10421041
fn test_build_command_nested_workdir() -> anyhow::Result<()> {
10431042
do_test_build_command("tests/testcases/nested-build")
10441043
}

0 commit comments

Comments
 (0)