chore(deps): update rust crate http to v1 #7147
Annotations
7 errors and 3 warnings
the trait bound `wry::http::HeaderValue: std::convert::From<&tauri_runtime::http::header::HeaderValue>` is not satisfied:
core/tauri-runtime-wry/src/lib.rs#L343
error[E0277]: the trait bound `wry::http::HeaderValue: std::convert::From<&tauri_runtime::http::header::HeaderValue>` is not satisfied
--> core/tauri-runtime-wry/src/lib.rs:343:33
|
343 | res_builder = res_builder.header(name, val);
| ^^^^^^ the trait `std::convert::From<&tauri_runtime::http::header::HeaderValue>` is not implemented for `wry::http::HeaderValue`, which is required by `wry::http::HeaderValue: std::convert::TryFrom<&tauri_runtime::http::header::HeaderValue>`
|
= help: the following other types implement trait `std::convert::From<T>`:
`wry::http::HeaderValue` implements `std::convert::From<&wry::http::HeaderValue>`
`wry::http::HeaderValue` implements `std::convert::From<i16>`
`wry::http::HeaderValue` implements `std::convert::From<i32>`
`wry::http::HeaderValue` implements `std::convert::From<i64>`
`wry::http::HeaderValue` implements `std::convert::From<isize>`
`wry::http::HeaderValue` implements `std::convert::From<u16>`
`wry::http::HeaderValue` implements `std::convert::From<u32>`
`wry::http::HeaderValue` implements `std::convert::From<u64>`
and 2 others
= note: required for `&tauri_runtime::http::header::HeaderValue` to implement `std::convert::Into<wry::http::HeaderValue>`
= note: required for `wry::http::HeaderValue` to implement `std::convert::TryFrom<&tauri_runtime::http::header::HeaderValue>`
|
the trait bound `wry::http::HeaderName: std::convert::From<&tauri_runtime::http::header::HeaderName>` is not satisfied:
core/tauri-runtime-wry/src/lib.rs#L343
error[E0277]: the trait bound `wry::http::HeaderName: std::convert::From<&tauri_runtime::http::header::HeaderName>` is not satisfied
--> core/tauri-runtime-wry/src/lib.rs:343:33
|
343 | res_builder = res_builder.header(name, val);
| ^^^^^^ the trait `std::convert::From<&tauri_runtime::http::header::HeaderName>` is not implemented for `wry::http::HeaderName`, which is required by `wry::http::HeaderName: std::convert::TryFrom<&tauri_runtime::http::header::HeaderName>`
|
= help: the following other types implement trait `std::convert::From<T>`:
`wry::http::HeaderName` implements `std::convert::From<&wry::http::HeaderName>`
`wry::http::HeaderName` implements `std::convert::From<wry::http::header::name::Custom>`
`wry::http::HeaderName` implements `std::convert::From<wry::http::header::name::HdrName<'_>>`
`wry::http::HeaderName` implements `std::convert::From<wry::http::header::name::StandardHeader>`
= note: required for `&tauri_runtime::http::header::HeaderName` to implement `std::convert::Into<wry::http::HeaderName>`
= note: required for `wry::http::HeaderName` to implement `std::convert::TryFrom<&tauri_runtime::http::header::HeaderName>`
|
the trait bound `wry::http::HeaderName: std::convert::From<tauri_runtime::http::header::HeaderName>` is not satisfied:
core/tauri-runtime-wry/src/lib.rs#L340
error[E0277]: the trait bound `wry::http::HeaderName: std::convert::From<tauri_runtime::http::header::HeaderName>` is not satisfied
--> core/tauri-runtime-wry/src/lib.rs:340:33
|
340 | res_builder = res_builder.header(CONTENT_TYPE, mime);
| ^^^^^^ the trait `std::convert::From<tauri_runtime::http::header::HeaderName>` is not implemented for `wry::http::HeaderName`, which is required by `wry::http::HeaderName: std::convert::TryFrom<tauri_runtime::http::header::HeaderName>`
|
= help: the following other types implement trait `std::convert::From<T>`:
`wry::http::HeaderName` implements `std::convert::From<&wry::http::HeaderName>`
`wry::http::HeaderName` implements `std::convert::From<wry::http::header::name::Custom>`
`wry::http::HeaderName` implements `std::convert::From<wry::http::header::name::HdrName<'_>>`
`wry::http::HeaderName` implements `std::convert::From<wry::http::header::name::StandardHeader>`
= note: required for `tauri_runtime::http::header::HeaderName` to implement `std::convert::Into<wry::http::HeaderName>`
= note: required for `wry::http::HeaderName` to implement `std::convert::TryFrom<tauri_runtime::http::header::HeaderName>`
|
mismatched types:
core/tauri-runtime-wry/src/lib.rs#L338
error[E0308]: mismatched types
--> core/tauri-runtime-wry/src/lib.rs:338:16
|
338 | .version(parts.version);
| ------- ^^^^^^^^^^^^^ expected `wry::http::Version`, found `Version`
| |
| arguments to this method are incorrect
|
= note: `Version` and `wry::http::Version` have similar names, but are actually distinct types
note: `Version` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-1.2.0/src/version.rs:26:1
|
26 | pub struct Version(Http);
| ^^^^^^^^^^^^^^^^^^
note: `wry::http::Version` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.12/src/version.rs:26:1
|
26 | pub struct Version(Http);
| ^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `http` are being used?
note: method defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.12/src/response.rs:586:12
|
586 | pub fn version(self, version: Version) -> Builder {
| ^^^^^^^
|
the trait bound `wry::http::StatusCode: std::convert::From<tauri_runtime::http::status::StatusCode>` is not satisfied:
core/tauri-runtime-wry/src/lib.rs#L337
error[E0277]: the trait bound `wry::http::StatusCode: std::convert::From<tauri_runtime::http::status::StatusCode>` is not satisfied
--> core/tauri-runtime-wry/src/lib.rs:337:8
|
337 | .status(parts.status)
| ^^^^^^ the trait `std::convert::From<tauri_runtime::http::status::StatusCode>` is not implemented for `wry::http::StatusCode`, which is required by `wry::http::StatusCode: std::convert::TryFrom<tauri_runtime::http::status::StatusCode>`
|
= help: the trait `std::convert::From<&wry::http::StatusCode>` is implemented for `wry::http::StatusCode`
= help: for that trait implementation, expected `&wry::http::StatusCode`, found `tauri_runtime::http::status::StatusCode`
= note: required for `tauri_runtime::http::status::StatusCode` to implement `std::convert::Into<wry::http::StatusCode>`
= note: required for `wry::http::StatusCode` to implement `std::convert::TryFrom<tauri_runtime::http::status::StatusCode>`
|
mismatched types:
core/tauri-runtime-wry/src/lib.rs#L325
error[E0308]: mismatched types
--> core/tauri-runtime-wry/src/lib.rs:325:16
|
325 | headers: req.headers().clone(),
| ^^^^^^^^^^^^^^^^^^^^^ expected `HeaderMap`, found `wry::http::HeaderMap`
|
= note: `wry::http::HeaderMap` and `HeaderMap` have similar names, but are actually distinct types
note: `wry::http::HeaderMap` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.12/src/header/map.rs:45:1
|
45 | pub struct HeaderMap<T = HeaderValue> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `HeaderMap` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-1.2.0/src/header/map.rs:45:1
|
45 | pub struct HeaderMap<T = HeaderValue> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `http` are being used?
|
mismatched types:
core/tauri-runtime-wry/src/lib.rs#L324
error[E0308]: mismatched types
--> core/tauri-runtime-wry/src/lib.rs:324:15
|
324 | method: req.method().clone(),
| ^^^^^^^^^^^^^^^^^^^^ expected `tauri_runtime::http::method::Method`, found `wry::http::Method`
|
= note: `wry::http::Method` and `tauri_runtime::http::method::Method` have similar names, but are actually distinct types
note: `wry::http::Method` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.12/src/method.rs:46:1
|
46 | pub struct Method(Inner);
| ^^^^^^^^^^^^^^^^^
note: `tauri_runtime::http::method::Method` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-1.2.0/src/method.rs:45:1
|
45 | pub struct Method(Inner);
| ^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `http` are being used?
|
audit-rust
14 warnings found!
|
audit-rust
Unknown warning kind unsound found, please, file a bug
|
audit-rust
Unknown warning kind unsound found, please, file a bug
|