Update Rust crate azure_storage_blobs to 0.20.0 - autoclosed #496
Lint.yaml
on: pull_request
Clippy
36s
`cargo deny`
17s
Report Missing Dependencies
12s
Matrix: rust
Annotations
21 errors
the trait bound `azure_storage::authorization::StorageCredentials: std::convert::From<azure_storage::StorageCredentials>` is not satisfied:
crates/azure/src/lib.rs#L73
error[E0277]: the trait bound `azure_storage::authorization::StorageCredentials: std::convert::From<azure_storage::StorageCredentials>` is not satisfied
--> crates/azure/src/config.rs:73:40
|
73 | 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#L73
error[E0308]: mismatched types
--> crates/azure/src/config.rs:73:60
|
73 | 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.19.0/src/cloud_location.rs:8:1
|
8 | 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
| ^^^^^^^^^^^^^
|
`?` couldn't convert the error to `azure_core::Error`:
crates/azure/src/lib.rs#L73
error[E0277]: `?` couldn't convert the error to `azure_core::Error`
--> crates/azure/src/service.rs:73:41
|
73 | if self.container.exists().await? {
| ^ the trait `std::convert::From<azure_core::error::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_core::error::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 as std::convert::From<serde_json::error::Error>>
<azure_core::Error as std::convert::From<base64::decode::DecodeError>>
<azure_core::Error as std::convert::From<url::parser::ParseError>>
<azure_core::Error as std::convert::From<azure_storage::ErrorKind>>
<azure_core::Error as std::convert::From<std::io::Error>>
<azure_core::Error as std::convert::From<std::string::FromUtf8Error>>
<azure_core::Error as std::convert::From<std::str::Utf8Error>>
= note: required for `std::result::Result<(), azure_core::Error>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, azure_core::error::Error>>`
|
mismatched types:
crates/azure/src/lib.rs#L90
error[E0308]: mismatched types
--> crates/azure/src/service.rs:90:9
|
90 | self.container.create().await
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `azure_core::Error`, found `azure_core::error::Error`
|
= note: `azure_core::error::Error` and `azure_core::Error` have similar names, but are actually distinct types
note: `azure_core::error::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.19.0/src/error/mod.rs:72:1
|
72 | 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#L126
error[E0277]: `?` couldn't convert the error to `azure_core::Error`
--> crates/azure/src/service.rs:126:34
|
126 | if !client.exists().await? {
| ^ the trait `std::convert::From<azure_core::error::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_core::error::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 as std::convert::From<serde_json::error::Error>>
<azure_core::Error as std::convert::From<base64::decode::DecodeError>>
<azure_core::Error as std::convert::From<url::parser::ParseError>>
<azure_core::Error as std::convert::From<azure_storage::ErrorKind>>
<azure_core::Error as std::convert::From<std::io::Error>>
<azure_core::Error as std::convert::From<std::string::FromUtf8Error>>
<azure_core::Error as std::convert::From<std::str::Utf8Error>>
= 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_core::error::Error>>`
|
mismatched types:
crates/azure/src/lib.rs#L130
error[E0308]: mismatched types
--> crates/azure/src/service.rs:130:9
|
130 | client.get_content().await.map(|content| Some(From::from(content)))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<Option<Bytes>, Error>`, found `Result<Option<_>, Error>`
|
= note: `azure_core::error::Error` and `azure_core::Error` have similar names, but are actually distinct types
note: `azure_core::error::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.19.0/src/error/mod.rs:72:1
|
72 | 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:57:1
|
57 | #[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#L166
error[E0277]: `?` couldn't convert the error to `azure_core::Error`
--> crates/azure/src/service.rs:166:50
|
166 | let props = client.get_properties().await?;
| ^ the trait `std::convert::From<azure_core::error::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_core::error::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 as std::convert::From<serde_json::error::Error>>
<azure_core::Error as std::convert::From<base64::decode::DecodeError>>
<azure_core::Error as std::convert::From<url::parser::ParseError>>
<azure_core::Error as std::convert::From<azure_storage::ErrorKind>>
<azure_core::Error as std::convert::From<std::io::Error>>
<azure_core::Error as std::convert::From<std::string::FromUtf8Error>>
<azure_core::Error as std::convert::From<std::str::Utf8Error>>
= 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_core::error::Error>>`
|
`?` couldn't convert the error to `azure_core::Error`:
crates/azure/src/lib.rs#L167
error[E0277]: `?` couldn't convert the error to `azure_core::Error`
--> crates/azure/src/service.rs:167:58
|
167 | let data = Bytes::from(client.get_content().await?);
| ^ the trait `std::convert::From<azure_core::error::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_core::error::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 as std::convert::From<serde_json::error::Error>>
<azure_core::Error as std::convert::From<base64::decode::DecodeError>>
<azure_core::Error as std::convert::From<url::parser::ParseError>>
<azure_core::Error as std::convert::From<azure_storage::ErrorKind>>
<azure_core::Error as std::convert::From<std::io::Error>>
<azure_core::Error as std::convert::From<std::string::FromUtf8Error>>
<azure_core::Error as std::convert::From<std::str::Utf8Error>>
= 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_core::error::Error>>`
|
the trait bound `std::borrow::Cow<'static, str>: std::convert::From<azure_core::prelude::Prefix>` is not satisfied:
crates/azure/src/lib.rs#L242
error[E0277]: the trait bound `std::borrow::Cow<'static, str>: std::convert::From<azure_core::prelude::Prefix>` is not satisfied
--> crates/azure/src/service.rs:242:34
|
242 | blobs = blobs.prefix(Prefix::from(prefix.clone()));
| ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<azure_core::prelude::Prefix>` is not implemented for `std::borrow::Cow<'static, str>`, which is required by `azure_core::prelude::Prefix: std::convert::Into<azure_core::request_options::Prefix>`
| |
| required by a bound introduced by this call
|
= help: the trait `std::convert::From<serde_urlencoded::ser::key::Key<'_>>` is implemented for `std::borrow::Cow<'static, str>`
= help: for that trait implementation, expected `serde_urlencoded::ser::key::Key<'_>`, found `azure_core::prelude::Prefix`
= note: required for `azure_core::prelude::Prefix` to implement `std::convert::Into<std::borrow::Cow<'static, str>>`
= note: required for `azure_core::request_options::Prefix` to implement `std::convert::From<azure_core::prelude::Prefix>`
= note: 1 redundant requirement hidden
= note: required for `azure_core::prelude::Prefix` to implement `std::convert::Into<azure_core::request_options::Prefix>`
note: required by a bound in `azure_storage_blobs::container::operations::ListBlobsBuilder::prefix`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/azure_storage_blobs-0.20.0/src/container/operations/list_blobs.rs:10:1
|
10 | / operation! {
11 | | #[stream]
12 | | ListBlobs,
13 | | client: ContainerClient,
14 | | ?prefix: Prefix,
| | ------ required by a bound in this associated function
... |
24 | | ?marker: NextMarker,
25 | | }
| |_^ required by this bound in `ListBlobsBuilder::prefix`
= note: this error originates in the macro `$crate::setters` which comes from the expansion of the macro `operation` (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#L248
error[E0277]: `?` couldn't convert the error to `azure_core::Error`
--> crates/azure/src/service.rs:248:29
|
248 | let data = value?;
| ^ the trait `std::convert::From<azure_core::error::Error>` is not implemented for `azure_core::Error`, which is required by `std::result::Result<std::vec::Vec<remi::Blob>, azure_core::Error>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, azure_core::error::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 as std::convert::From<serde_json::error::Error>>
<azure_core::Error as std::convert::From<base64::decode::DecodeError>>
<azure_core::Error as std::convert::From<url::parser::ParseError>>
<azure_core::Error as std::convert::From<azure_storage::ErrorKind>>
<azure_core::Error as std::convert::From<std::io::Error>>
<azure_core::Error as std::convert::From<std::string::FromUtf8Error>>
<azure_core::Error as std::convert::From<std::str::Utf8Error>>
= note: required for `std::result::Result<std::vec::Vec<remi::Blob>, azure_core::Error>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, azure_core::error::Error>>`
|
Rust CI [nightly on Linux (x86_64)]
Process completed with exit code 101.
|
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 [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 macOS]
The job was canceled because "nightly_ubuntu-latest" failed.
|
Rust CI [nightly on macOS]
The operation was canceled.
|