Update Rust crate azure_storage to 0.21.0 - autoclosed #550
Lint.yaml
on: pull_request
Clippy
30s
`cargo deny`
16s
Report Missing Dependencies
13s
Matrix: rust
Annotations
19 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.21.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`
|
the trait bound `azure_storage::authorization::StorageCredentials: std::convert::From<azure_storage::StorageCredentials>` is not satisfied:
crates/azure/src/lib.rs#L85
error[E0277]: the trait bound `azure_storage::authorization::StorageCredentials: std::convert::From<azure_storage::StorageCredentials>` is not satisfied
--> crates/azure/src/config.rs:85:40
|
85 | ClientBuilder::with_location::<StorageCredentials>(value.location, value.credentials.into())
| ^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<azure_storage::StorageCredentials>` is not implemented for `azure_storage::authorization::StorageCredentials`, which is required by `azure_storage::StorageCredentials: std::convert::Into<azure_storage::authorization::StorageCredentials>`
|
= help: the trait `std::convert::From<std::sync::Arc<(dyn azure_core::auth::TokenCredential + 'static)>>` is implemented for `azure_storage::authorization::StorageCredentials`
= help: for that trait implementation, expected `std::sync::Arc<(dyn azure_core::auth::TokenCredential + 'static)>`, found `azure_storage::StorageCredentials`
= note: required for `azure_storage::StorageCredentials` to implement `std::convert::Into<azure_storage::authorization::StorageCredentials>`
note: required by a bound in `azure_storage_blobs::prelude::ClientBuilder::with_location`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/azure_storage_blobs-0.20.0/src/clients/blob_service_client.rs:45:12
|
43 | pub fn with_location<C>(cloud_location: CloudLocation, credentials: C) -> Self
| ------------- required by a bound in this associated function
44 | where
45 | C: Into<StorageCredentials>,
| ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ClientBuilder::with_location`
|
mismatched types:
crates/azure/src/lib.rs#L85
error[E0308]: mismatched types
--> crates/azure/src/config.rs:85:60
|
85 | ClientBuilder::with_location::<StorageCredentials>(value.location, value.credentials.into())
| -------------------------------------------------- ^^^^^^^^^^^^^^ expected `CloudLocation`, found `azure_storage::CloudLocation`
| |
| arguments to this function are incorrect
|
= note: `azure_storage::CloudLocation` and `CloudLocation` have similar names, but are actually distinct types
note: `azure_storage::CloudLocation` is defined in crate `azure_storage`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/azure_storage-0.21.0/src/cloud_location.rs:7:1
|
7 | pub enum CloudLocation {
| ^^^^^^^^^^^^^^^^^^^^^^
note: `CloudLocation` is defined in crate `azure_storage`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/azure_storage-0.20.0/src/cloud_location.rs:7:1
|
7 | pub enum CloudLocation {
| ^^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `azure_storage` are being used?
note: associated function defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/azure_storage_blobs-0.20.0/src/clients/blob_service_client.rs:43:12
|
43 | pub fn with_location<C>(cloud_location: CloudLocation, credentials: C) -> Self
| ^^^^^^^^^^^^^
|
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 `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: 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.20.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>>`
|
aborting due to 5 previous errors
error: aborting due to 5 previous errors
|
Clippy
Received a internal compiler error OR an unknown message type, view this in debug mode to view the payload
|
Clippy
{
"rendered": "Some errors have detailed explanations: E0277, E0308.\n",
"$message_type": "diagnostic",
"children": [],
"code": null,
"level": "failure-note",
"message": "Some errors have detailed explanations: E0277, E0308.",
"spans": []
}
|
Rust CI [stable on macOS]
Process completed with exit code 101.
|
Rust CI [nightly on Linux (x86_64)]
The job was canceled because "stable_macos-latest" failed.
|
Rust CI [nightly on Linux (x86_64)]
Process completed with exit code 101.
|
Rust CI [stable on Windows]
The job was canceled because "stable_macos-latest" failed.
|
Rust CI [stable on Windows]
The operation was canceled.
|
Rust CI [nightly on Windows]
The job was canceled because "stable_macos-latest" failed.
|
Rust CI [nightly on Windows]
The operation was canceled.
|
Rust CI [nightly on macOS]
The job was canceled because "stable_macos-latest" failed.
|
Rust CI [nightly on macOS]
The operation was canceled.
|
Rust CI [stable on Linux (x86_64)]
The job was canceled because "stable_macos-latest" failed.
|
Rust CI [stable on Linux (x86_64)]
The operation was canceled.
|