diff --git a/.github/workflows/minimal.yml b/.github/workflows/minimal.yml index ef491c60..9ae44073 100644 --- a/.github/workflows/minimal.yml +++ b/.github/workflows/minimal.yml @@ -13,7 +13,7 @@ jobs: rust: - stable - beta - - 1.65.0 # MSRV + - "1.70.0" # MSRV include: - rust: nightly experimental: true @@ -41,7 +41,7 @@ jobs: rust: - stable - beta - - 1.65.0 # MSRV + - "1.70.0" # MSRV include: - rust: nightly experimental: true @@ -75,7 +75,7 @@ jobs: rust: - stable - beta - - 1.65.0 # MSRV + - "1.70.0" # MSRV include: - rust: nightly experimental: true @@ -104,7 +104,7 @@ jobs: rust: - stable - beta - - 1.65.0 # MSRV + - "1.70.0" # MSRV include: - rust: nightly experimental: true diff --git a/Cargo.toml b/Cargo.toml index d50dfdd9..5138d917 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,6 @@ [package] name = "dkregistry" +rust-version = "1.70.0" version = "0.5.1-alpha.0" authors = ["Luca Bruno ", "Stefan Junker "] license = "MIT OR Apache-2.0" diff --git a/src/v2/auth.rs b/src/v2/auth.rs index 7f9eb9c3..c380f1de 100644 --- a/src/v2/auth.rs +++ b/src/v2/auth.rs @@ -129,7 +129,7 @@ impl WwwAuthenticateHeaderContent { let captures = re.captures_iter(&header).collect::>(); let method = captures - .get(0) + .first() .ok_or(WwwHeaderParseError::InvalidValue)? .name("method") .ok_or(WwwHeaderParseError::FieldMethodMissing)?