fix(deps): update rust crate azure_core to 0.24.0 - autoclosed #576
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Lint.yaml
on: pull_request
Clippy
1m 16s
`cargo deny`
20s
Report Missing Dependencies
13s
Matrix: rust
Annotations
22 errors and 11 warnings
|
`cargo deny`
Process completed with exit code 4.
|
|
unresolved import `azure_core::auth`:
crates/azure/src/lib.rs#L22
error[E0432]: unresolved import `azure_core::auth`
--> crates/azure/src/config.rs:22:17
|
22 | use azure_core::auth::Secret;
| ^^^^ could not find `auth` in `azure_core`
|
|
`match` arms have incompatible types:
crates/azure/src/lib.rs#L83
error[E0308]: `match` arms have incompatible types
--> crates/azure/src/config.rs:83:44
|
78 | / match value {
79 | | Credential::AccessKey { account, access_key } => {
80 | | Ok(StorageCredentials::access_key(account, Secret::new(access_key)))
| | -------------------------------------------------------------------- this is found to be of type `std::result::Result<azure_storage::StorageCredentials, azure_core::Error>`
81 | | }
82 | |
83 | | Credential::SASToken(token) => StorageCredentials::sas_token(token),
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `azure_core::Error`, found `azure_storage::Error`
84 | | Credential::Bearer(token) => Ok(StorageCredentials::bearer_token(token)),
85 | | Credential::Anonymous => Ok(StorageCredentials::anonymous()),
86 | | }
| |_________- `match` arms have incompatible types
|
= note: `azure_storage::Error` and `azure_core::Error` have similar names, but are actually distinct types
note: `azure_storage::Error` is defined in crate `azure_core`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/azure_core-0.21.0/src/error/mod.rs:87:1
|
87 | pub struct Error {
| ^^^^^^^^^^^^^^^^
note: `azure_core::Error` is defined in crate `typespec`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/typespec-0.2.0/src/error/mod.rs:73:1
|
73 | pub struct Error {
| ^^^^^^^^^^^^^^^^
|
|
mismatched types:
crates/azure/src/lib.rs#L61
error[E0308]: mismatched types
--> crates/azure/src/service.rs:61:51
|
61 | .ok_or_else(|| azure_core::Error::new(ErrorKind::Other, "was not valid utf-8"))
| ---------------------- ^^^^^^^^^^^^^^^^ expected `azure_core::error::ErrorKind`, found `azure_storage::ErrorKind`
| |
| arguments to this function are incorrect
|
= note: `azure_storage::ErrorKind` and `azure_core::error::ErrorKind` have similar names, but are actually distinct types
note: `azure_storage::ErrorKind` is defined in crate `azure_core`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/azure_core-0.21.0/src/error/mod.rs:18:1
|
18 | pub enum ErrorKind {
| ^^^^^^^^^^^^^^^^^^
note: `azure_core::error::ErrorKind` is defined in crate `typespec`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/typespec-0.2.0/src/error/mod.rs:19:1
|
19 | pub enum ErrorKind {
| ^^^^^^^^^^^^^^^^^^
note: associated function defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/typespec-0.2.0/src/error/mod.rs:79:12
|
79 | pub fn new<E>(kind: ErrorKind, error: E) -> Self
| ^^^
|
|
`?` couldn't convert the error to `azure_core::Error`:
crates/azure/src/lib.rs#L62
error[E0277]: `?` couldn't convert the error to `azure_core::Error`
--> crates/azure/src/service.rs:62:87
|
62 | .with_context(ErrorKind::Other, || "failed to convert path into a string")?;
| ^ the trait `std::convert::From<azure_storage::Error>` is not implemented for `azure_core::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`azure_core::Error` implements `std::convert::From<azure_core::error::ErrorKind>`
`azure_core::Error` implements `std::convert::From<base64::decode::DecodeError>`
`azure_core::Error` implements `std::convert::From<serde_json::error::Error>`
`azure_core::Error` implements `std::convert::From<std::convert::Infallible>`
`azure_core::Error` implements `std::convert::From<std::io::Error>`
`azure_core::Error` implements `std::convert::From<std::num::ParseIntError>`
`azure_core::Error` implements `std::convert::From<std::str::Utf8Error>`
`azure_core::Error` implements `std::convert::From<std::string::FromUtf8Error>`
`azure_core::Error` implements `std::convert::From<url::parser::ParseError>`
= note: required for `std::result::Result<std::string::String, azure_core::Error>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, azure_storage::Error>>`
|
|
`?` couldn't convert the error to `azure_core::Error`:
crates/azure/src/lib.rs#L97
error[E0277]: `?` couldn't convert the error to `azure_core::Error`
--> crates/azure/src/service.rs:97:41
|
97 | if self.container.exists().await? {
| ^ the trait `std::convert::From<azure_storage::Error>` is not implemented for `azure_core::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`azure_core::Error` implements `std::convert::From<azure_core::error::ErrorKind>`
`azure_core::Error` implements `std::convert::From<base64::decode::DecodeError>`
`azure_core::Error` implements `std::convert::From<serde_json::error::Error>`
`azure_core::Error` implements `std::convert::From<std::convert::Infallible>`
`azure_core::Error` implements `std::convert::From<std::io::Error>`
`azure_core::Error` implements `std::convert::From<std::num::ParseIntError>`
`azure_core::Error` implements `std::convert::From<std::str::Utf8Error>`
`azure_core::Error` implements `std::convert::From<std::string::FromUtf8Error>`
`azure_core::Error` implements `std::convert::From<url::parser::ParseError>`
= note: required for `std::result::Result<(), azure_core::Error>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, azure_storage::Error>>`
|
|
mismatched types:
crates/azure/src/lib.rs#L110
error[E0308]: mismatched types
--> crates/azure/src/service.rs:110:9
|
110 | self.container.create().await
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `azure_core::Error`, found `azure_storage::Error`
|
= note: `azure_storage::Error` and `azure_core::Error` have similar names, but are actually distinct types
note: `azure_storage::Error` is defined in crate `azure_core`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/azure_core-0.21.0/src/error/mod.rs:87:1
|
87 | pub struct Error {
| ^^^^^^^^^^^^^^^^
note: `azure_core::Error` is defined in crate `typespec`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/typespec-0.2.0/src/error/mod.rs:73:1
|
73 | pub struct Error {
| ^^^^^^^^^^^^^^^^
|
|
`?` couldn't convert the error to `azure_core::Error`:
crates/azure/src/lib.rs#L142
error[E0277]: `?` couldn't convert the error to `azure_core::Error`
--> crates/azure/src/service.rs:142:34
|
142 | if !client.exists().await? {
| ^ the trait `std::convert::From<azure_storage::Error>` is not implemented for `azure_core::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`azure_core::Error` implements `std::convert::From<azure_core::error::ErrorKind>`
`azure_core::Error` implements `std::convert::From<base64::decode::DecodeError>`
`azure_core::Error` implements `std::convert::From<serde_json::error::Error>`
`azure_core::Error` implements `std::convert::From<std::convert::Infallible>`
`azure_core::Error` implements `std::convert::From<std::io::Error>`
`azure_core::Error` implements `std::convert::From<std::num::ParseIntError>`
`azure_core::Error` implements `std::convert::From<std::str::Utf8Error>`
`azure_core::Error` implements `std::convert::From<std::string::FromUtf8Error>`
`azure_core::Error` implements `std::convert::From<url::parser::ParseError>`
= note: required for `std::result::Result<std::option::Option<azure_core::Bytes>, azure_core::Error>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, azure_storage::Error>>`
|
|
mismatched types:
crates/azure/src/lib.rs#L146
error[E0308]: mismatched types
--> crates/azure/src/service.rs:146:9
|
146 | client.get_content().await.map(|content| Some(From::from(content)))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<Option<Bytes>, Error>`, found `Result<Option<_>, Error>`
|
= note: `azure_storage::Error` and `azure_core::Error` have similar names, but are actually distinct types
note: `azure_storage::Error` is defined in crate `azure_core`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/azure_core-0.21.0/src/error/mod.rs:87:1
|
87 | pub struct Error {
| ^^^^^^^^^^^^^^^^
note: `azure_core::Error` is defined in crate `typespec`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/typespec-0.2.0/src/error/mod.rs:73:1
|
73 | pub struct Error {
| ^^^^^^^^^^^^^^^^
note: return type inferred to be `std::result::Result<std::option::Option<azure_core::Bytes>, azure_core::Error>` here
--> crates/azure/src/service.rs:77:1
|
77 | #[async_trait]
| ^^^^^^^^^^^^^^
= note: this error originates in the attribute macro `async_trait` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
`?` couldn't convert the error to `azure_core::Error`:
crates/azure/src/lib.rs#L178
error[E0277]: `?` couldn't convert the error to `azure_core::Error`
--> crates/azure/src/service.rs:178:34
|
178 | if !client.exists().await? {
| ^ the trait `std::convert::From<azure_storage::Error>` is not implemented for `azure_core::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`azure_core::Error` implements `std::convert::From<azure_core::error::ErrorKind>`
`azure_core::Error` implements `std::convert::From<base64::decode::DecodeError>`
`azure_core::Error` implements `std::convert::From<serde_json::error::Error>`
`azure_core::Error` implements `std::convert::From<std::convert::Infallible>`
`azure_core::Error` implements `std::convert::From<std::io::Error>`
`azure_core::Error` implements `std::convert::From<std::num::ParseIntError>`
`azure_core::Error` implements `std::convert::From<std::str::Utf8Error>`
`azure_core::Error` implements `std::convert::From<std::string::FromUtf8Error>`
`azure_core::Error` implements `std::convert::From<url::parser::ParseError>`
= note: required for `std::result::Result<std::option::Option<remi::Blob>, azure_core::Error>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, azure_storage::Error>>`
|
|
`?` couldn't convert the error to `azure_core::Error`:
crates/azure/src/lib.rs#L182
error[E0277]: `?` couldn't convert the error to `azure_core::Error`
--> crates/azure/src/service.rs:182:50
|
182 | let props = client.get_properties().await?;
| ^ the trait `std::convert::From<azure_storage::Error>` is not implemented for `azure_core::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`azure_core::Error` implements `std::convert::From<azure_core::error::ErrorKind>`
`azure_core::Error` implements `std::convert::From<base64::decode::DecodeError>`
`azure_core::Error` implements `std::convert::From<serde_json::error::Error>`
`azure_core::Error` implements `std::convert::From<std::convert::Infallible>`
`azure_core::Error` implements `std::convert::From<std::io::Error>`
`azure_core::Error` implements `std::convert::From<std::num::ParseIntError>`
`azure_core::Error` implements `std::convert::From<std::str::Utf8Error>`
`azure_core::Error` implements `std::convert::From<std::string::FromUtf8Error>`
`azure_core::Error` implements `std::convert::From<url::parser::ParseError>`
= note: required for `std::result::Result<std::option::Option<remi::Blob>, azure_core::Error>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, azure_storage::Error>>`
|
|
Rust CI [nightly on Linux (x86_64)]
Process completed with exit code 101.
|
|
Rust CI [stable on Linux (x86_64)]
The job was canceled because "nightly_ubuntu-latest" failed.
|
|
Rust CI [stable on Linux (x86_64)]
The operation was canceled.
|
|
Rust CI [stable on Windows]
The job was canceled because "nightly_ubuntu-latest" failed.
|
|
Rust CI [stable on Windows]
The operation was canceled.
|
|
Rust CI [stable on macOS]
The job was canceled because "nightly_ubuntu-latest" failed.
|
|
Rust CI [stable on macOS]
The operation was canceled.
|
|
Rust CI [nightly on Windows]
The job was canceled because "nightly_ubuntu-latest" failed.
|
|
Rust CI [nightly on Windows]
The operation was canceled.
|
|
Rust CI [nightly on macOS]
The job was canceled because "nightly_ubuntu-latest" failed.
|
|
Rust CI [nightly on macOS]
The operation was canceled.
|
|
the MSRV in `clippy.toml` and `Cargo.toml` differ; using `1.76.0` from `clippy.toml`
warning: the MSRV in `clippy.toml` and `Cargo.toml` differ; using `1.76.0` from `clippy.toml`
|
|
the MSRV in `clippy.toml` and `Cargo.toml` differ; using `1.76.0` from `clippy.toml`
warning: the MSRV in `clippy.toml` and `Cargo.toml` differ; using `1.76.0` from `clippy.toml`
|
|
the MSRV in `clippy.toml` and `Cargo.toml` differ; using `1.76.0` from `clippy.toml`
warning: the MSRV in `clippy.toml` and `Cargo.toml` differ; using `1.76.0` from `clippy.toml`
|
|
the MSRV in `clippy.toml` and `Cargo.toml` differ; using `1.76.0` from `clippy.toml`
warning: the MSRV in `clippy.toml` and `Cargo.toml` differ; using `1.76.0` from `clippy.toml`
|
|
Clippy
Cache not found for keys: v0-rust-clippy-Linux-e99b5096-f321f851, v0-rust-clippy-Linux-e99b5096
|
|
Rust CI [nightly on Linux (x86_64)]
Cache not found for keys: v0-rust-rust-Linux-15f446bb-227c9070, v0-rust-rust-Linux-15f446bb
|
|
Rust CI [stable on Linux (x86_64)]
Cache not found for keys: v0-rust-rust-Linux-e99b5096-227c9070, v0-rust-rust-Linux-e99b5096
|
|
Rust CI [stable on Windows]
Cache not found for keys: v0-rust-rust-Windows_NT-fc928af2-227c9070, v0-rust-rust-Windows_NT-fc928af2
|
|
Rust CI [stable on macOS]
Cache not found for keys: v0-rust-rust-Darwin-702f1b52-227c9070, v0-rust-rust-Darwin-702f1b52
|
|
Rust CI [nightly on Windows]
Cache not found for keys: v0-rust-rust-Windows_NT-a7417a68-227c9070, v0-rust-rust-Windows_NT-a7417a68
|
|
Rust CI [nightly on macOS]
Cache not found for keys: v0-rust-rust-Darwin-034a3243-227c9070, v0-rust-rust-Darwin-034a3243
|