diff --git a/Cargo.toml b/Cargo.toml index 2684d2b9..94fd857d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ members = [ resolver = "2" [workspace.package] -rust-version = "1.71.1" +rust-version = "1.72.0" [workspace.dependencies] aho-corasick = "1.1.2" diff --git a/README.md b/README.md index 0dec3660..e27cda20 100644 --- a/README.md +++ b/README.md @@ -189,7 +189,7 @@ Please make sure, that you read the ## Minimum Rust version policy -This crate's minimum supported `rustc` version is `1.71.1`. +This crate's minimum supported `rustc` version is `1.72.0`. The current policy is that the minimum Rust version required to use this crate can be increased in minor version updates. For example, if `crate 1.0` requires diff --git a/crates/backend/README.md b/crates/backend/README.md index ed421026..ef415dcc 100644 --- a/crates/backend/README.md +++ b/crates/backend/README.md @@ -100,7 +100,7 @@ Please make sure, that you read the ## Minimum Rust version policy -This crate's minimum supported `rustc` version is `1.71.1`. +This crate's minimum supported `rustc` version is `1.72.0`. The current policy is that the minimum Rust version required to use this crate can be increased in minor version updates. For example, if `crate 1.0` requires diff --git a/crates/backend/src/rest.rs b/crates/backend/src/rest.rs index 0423fec1..58552167 100644 --- a/crates/backend/src/rest.rs +++ b/crates/backend/src/rest.rs @@ -256,16 +256,16 @@ impl ReadBackend for RestBackend { .map_err(RestErrorKind::JoiningUrlFailed)? }; - match backoff::retry_notify( + // format which is delivered by the REST-service + #[derive(Deserialize)] + struct ListEntry { + name: String, + size: u32, + } + + backoff::retry_notify( self.backoff.clone(), || { - // format which is delivered by the REST-service - #[derive(Deserialize)] - struct ListEntry { - name: String, - size: u32, - } - if tpe == FileType::Config { return Ok( if self.client.head(url.clone()).send()?.status().is_success() { @@ -293,10 +293,8 @@ impl ReadBackend for RestBackend { .collect()) }, notify, - ) { - Ok(val) => Ok(val), - Err(e) => Err(RestErrorKind::BackoffError(e).into()), - } + ) + .map_err(|e| RestErrorKind::BackoffError(e).into()) } /// Returns the content of a file. diff --git a/crates/core/README.md b/crates/core/README.md index 9df8d691..cb005f7d 100644 --- a/crates/core/README.md +++ b/crates/core/README.md @@ -215,7 +215,7 @@ Please make sure, that you read the ## Minimum Rust version policy -This crate's minimum supported `rustc` version is `1.71.1`. +This crate's minimum supported `rustc` version is `1.72.0`. The current policy is that the minimum Rust version required to use this crate can be increased in minor version updates. For example, if `crate 1.0` requires diff --git a/crates/core/src/blob.rs b/crates/core/src/blob.rs index 6c546236..540fe4c1 100644 --- a/crates/core/src/blob.rs +++ b/crates/core/src/blob.rs @@ -40,7 +40,7 @@ impl BlobType { pub type BlobTypeMap = EnumMap; -/// Initialize is a new trait to define the method init() for a [`BlobTypeMap`] +/// Initialize is a new trait to define the method `init()` for a [`BlobTypeMap`] pub trait Initialize { /// Initialize a [`BlobTypeMap`] by processing a given function for each [`BlobType`] fn init T>(init: F) -> BlobTypeMap;