Update Rust crate azure_core to 0.21.0 - autoclosed #549
Lint.yaml
on: pull_request
Clippy
34s
`cargo deny`
17s
Report Missing Dependencies
11s
Matrix: rust
Annotations
21 errors
the trait bound `azure_core::auth::Secret: std::convert::From<azure_core::auth::Secret>` is not satisfied:
crates/azure/src/lib.rs#L73
error[E0277]: the trait bound `azure_core::auth::Secret: std::convert::From<azure_core::auth::Secret>` is not satisfied
--> crates/azure/src/config.rs:73:57
|
73 | StorageCredentials::access_key(account, Secret::new(access_key))
| ------------------------------ ^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<azure_core::auth::Secret>` is not implemented for `azure_core::auth::Secret`, which is required by `azure_core::auth::Secret: std::convert::Into<azure_core::auth::Secret>`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `std::convert::From<T>`:
`azure_core::auth::Secret` implements `std::convert::From<&'static str>`
`azure_core::auth::Secret` implements `std::convert::From<std::string::String>`
= note: required for `azure_core::auth::Secret` to implement `std::convert::Into<azure_core::auth::Secret>`
note: required by a bound in `azure_storage::StorageCredentials::access_key`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/azure_storage-0.20.0/src/authorization/mod.rs:56:12
|
53 | pub fn access_key<A, K>(account: A, key: K) -> Self
| ---------- required by a bound in this associated function
...
56 | K: Into<Secret>,
| ^^^^^^^^^^^^ required by this bound in `StorageCredentials::access_key`
|
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.20.0/src/error/mod.rs:18:1
|
18 | pub enum ErrorKind {
| ^^^^^^^^^^^^^^^^^^
note: `azure_core::error::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: perhaps two different versions of crate `azure_core` are being used?
note: associated function defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/azure_core-0.21.0/src/error/mod.rs:93:12
|
93 | 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`, which is required by `std::result::Result<std::string::String, azure_core::Error>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, azure_storage::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::io::Error>`
`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#L96
error[E0277]: `?` couldn't convert the error to `azure_core::Error`
--> crates/azure/src/service.rs:96:41
|
96 | if self.container.exists().await? {
| ^ the trait `std::convert::From<azure_storage::Error>` is not implemented for `azure_core::Error`, which is required by `std::result::Result<(), azure_core::Error>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, azure_storage::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::io::Error>`
`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#L113
error[E0308]: mismatched types
--> crates/azure/src/service.rs:113:9
|
113 | 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.20.0/src/error/mod.rs:87:1
|
87 | pub struct Error {
| ^^^^^^^^^^^^^^^^
note: `azure_core::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: perhaps two different versions of crate `azure_core` are being used?
|
`?` couldn't convert the error to `azure_core::Error`:
crates/azure/src/lib.rs#L146
error[E0277]: `?` couldn't convert the error to `azure_core::Error`
--> crates/azure/src/service.rs:146:34
|
146 | if !client.exists().await? {
| ^ the trait `std::convert::From<azure_storage::Error>` is not implemented for `azure_core::Error`, which is required by `std::result::Result<std::option::Option<bytes::Bytes>, azure_core::Error>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, azure_storage::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::io::Error>`
`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<bytes::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#L150
error[E0308]: mismatched types
--> crates/azure/src/service.rs:150:9
|
150 | 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.20.0/src/error/mod.rs:87:1
|
87 | pub struct Error {
| ^^^^^^^^^^^^^^^^
note: `azure_core::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: perhaps two different versions of crate `azure_core` are being used?
note: return type inferred to be `std::result::Result<std::option::Option<bytes::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#L183
error[E0277]: `?` couldn't convert the error to `azure_core::Error`
--> crates/azure/src/service.rs:183:34
|
183 | if !client.exists().await? {
| ^ the trait `std::convert::From<azure_storage::Error>` is not implemented for `azure_core::Error`, which is required by `std::result::Result<std::option::Option<remi::Blob>, azure_core::Error>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, azure_storage::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::io::Error>`
`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#L187
error[E0277]: `?` couldn't convert the error to `azure_core::Error`
--> crates/azure/src/service.rs:187:50
|
187 | let props = client.get_properties().await?;
| ^ the trait `std::convert::From<azure_storage::Error>` is not implemented for `azure_core::Error`, which is required by `std::result::Result<std::option::Option<remi::Blob>, azure_core::Error>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, azure_storage::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::io::Error>`
`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#L188
error[E0277]: `?` couldn't convert the error to `azure_core::Error`
--> crates/azure/src/service.rs:188:58
|
188 | let data = Bytes::from(client.get_content().await?);
| ^ the trait `std::convert::From<azure_storage::Error>` is not implemented for `azure_core::Error`, which is required by `std::result::Result<std::option::Option<remi::Blob>, azure_core::Error>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, azure_storage::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::io::Error>`
`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 [stable on Linux (x86_64)]
Process completed with exit code 101.
|
Rust CI [nightly on Windows]
The job was canceled because "stable_ubuntu-latest" failed.
|
Rust CI [nightly on Windows]
The operation was canceled.
|
Rust CI [stable on Windows]
The job was canceled because "stable_ubuntu-latest" failed.
|
Rust CI [stable on Windows]
The operation was canceled.
|
Rust CI [stable on macOS]
The job was canceled because "stable_ubuntu-latest" failed.
|
Rust CI [stable on macOS]
The operation was canceled.
|
Rust CI [nightly on Linux (x86_64)]
The job was canceled because "stable_ubuntu-latest" failed.
|
Rust CI [nightly on Linux (x86_64)]
The operation was canceled.
|
Rust CI [nightly on macOS]
The job was canceled because "stable_ubuntu-latest" failed.
|
Rust CI [nightly on macOS]
The operation was canceled.
|