Skip to content

Commit

Permalink
fix: updated msrv and fix clippy lints (#160)
Browse files Browse the repository at this point in the history
`ahash` bumped their MSRV, we also bump ours now so other PRs are
unblocked from CI failing.
  • Loading branch information
aawsome authored Feb 12, 2024
1 parent dcc7e34 commit 5ccf12c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion crates/backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 10 additions & 12 deletions crates/backend/src/rest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion crates/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/blob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl BlobType {

pub type BlobTypeMap<T> = EnumMap<BlobType, T>;

/// 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<T: Default + Sized> {
/// Initialize a [`BlobTypeMap`] by processing a given function for each [`BlobType`]
fn init<F: FnMut(BlobType) -> T>(init: F) -> BlobTypeMap<T>;
Expand Down

0 comments on commit 5ccf12c

Please sign in to comment.