Fix: Tighten json-patch and jsonptr versions (#1700) #3706
Annotations
7 errors
`?` operator has incompatible types:
kube-runtime/src/finalizer.rs#L145
error[E0308]: `?` operator has incompatible types
--> kube-runtime/src/finalizer.rs:145:31
|
145 | path: PointerBuf::from_str(finalizer_path.as_str())
| _______________________________^
146 | | .map_err(|_err| Error::InvalidFinalizer)?,
| |_____________________________________________________________________^ expected `json_patch::jsonptr::PointerBuf`, found `jsonptr::PointerBuf`
|
= note: `?` operator cannot convert from `jsonptr::PointerBuf` to `json_patch::jsonptr::PointerBuf`
note: two different versions of crate `jsonptr` are being used; two types coming from two different versions of the same crate are different types even if they look the same
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jsonptr-0.6.3/src/pointer.rs:801:1
|
801 | pub struct PointerBuf(String);
| ^^^^^^^^^^^^^^^^^^^^^ this is the found type `jsonptr::PointerBuf`
|
::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jsonptr-0.7.1/src/pointer.rs:899:1
|
899 | pub struct PointerBuf(String);
| ^^^^^^^^^^^^^^^^^^^^^ this is the expected type `json_patch::jsonptr::PointerBuf`
|
::: kube-runtime/src/controller/mod.rs:22:5
|
22 | use kube_client::api::{Api, DynamicObject, Resource};
| ----------- one version of crate `jsonptr` used here, as a dependency of crate `json_patch`
|
::: kube-runtime/src/finalizer.rs:5:5
|
5 | use jsonptr::PointerBuf;
| ------- one version of crate `jsonptr` used here, as a direct dependency of the current crate
= help: you can use `cargo tree` to explore your dependency tree
|
`?` operator has incompatible types:
kube-runtime/src/finalizer.rs#L150
error[E0308]: `?` operator has incompatible types
--> kube-runtime/src/finalizer.rs:150:31
|
150 | path: PointerBuf::from_str(finalizer_path.as_str())
| _______________________________^
151 | | .map_err(|_err| Error::InvalidFinalizer)?,
| |_____________________________________________________________________^ expected `json_patch::jsonptr::PointerBuf`, found `jsonptr::PointerBuf`
|
= note: `?` operator cannot convert from `jsonptr::PointerBuf` to `json_patch::jsonptr::PointerBuf`
note: two different versions of crate `jsonptr` are being used; two types coming from two different versions of the same crate are different types even if they look the same
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jsonptr-0.6.3/src/pointer.rs:801:1
|
801 | pub struct PointerBuf(String);
| ^^^^^^^^^^^^^^^^^^^^^ this is the found type `jsonptr::PointerBuf`
|
::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jsonptr-0.7.1/src/pointer.rs:899:1
|
899 | pub struct PointerBuf(String);
| ^^^^^^^^^^^^^^^^^^^^^ this is the expected type `json_patch::jsonptr::PointerBuf`
|
::: kube-runtime/src/controller/mod.rs:22:5
|
22 | use kube_client::api::{Api, DynamicObject, Resource};
| ----------- one version of crate `jsonptr` used here, as a dependency of crate `json_patch`
|
::: kube-runtime/src/finalizer.rs:5:5
|
5 | use jsonptr::PointerBuf;
| ------- one version of crate `jsonptr` used here, as a direct dependency of the current crate
= help: you can use `cargo tree` to explore your dependency tree
|
`?` operator has incompatible types:
kube-runtime/src/finalizer.rs#L167
error[E0308]: `?` operator has incompatible types
--> kube-runtime/src/finalizer.rs:167:31
|
167 | path: PointerBuf::from_str("/metadata/finalizers")
| _______________________________^
168 | | .map_err(|_err| Error::InvalidFinalizer)?,
| |_____________________________________________________________________^ expected `json_patch::jsonptr::PointerBuf`, found `jsonptr::PointerBuf`
|
= note: `?` operator cannot convert from `jsonptr::PointerBuf` to `json_patch::jsonptr::PointerBuf`
note: two different versions of crate `jsonptr` are being used; two types coming from two different versions of the same crate are different types even if they look the same
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jsonptr-0.6.3/src/pointer.rs:801:1
|
801 | pub struct PointerBuf(String);
| ^^^^^^^^^^^^^^^^^^^^^ this is the found type `jsonptr::PointerBuf`
|
::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jsonptr-0.7.1/src/pointer.rs:899:1
|
899 | pub struct PointerBuf(String);
| ^^^^^^^^^^^^^^^^^^^^^ this is the expected type `json_patch::jsonptr::PointerBuf`
|
::: kube-runtime/src/controller/mod.rs:22:5
|
22 | use kube_client::api::{Api, DynamicObject, Resource};
| ----------- one version of crate `jsonptr` used here, as a dependency of crate `json_patch`
|
::: kube-runtime/src/finalizer.rs:5:5
|
5 | use jsonptr::PointerBuf;
| ------- one version of crate `jsonptr` used here, as a direct dependency of the current crate
= help: you can use `cargo tree` to explore your dependency tree
|
`?` operator has incompatible types:
kube-runtime/src/finalizer.rs#L172
error[E0308]: `?` operator has incompatible types
--> kube-runtime/src/finalizer.rs:172:31
|
172 | path: PointerBuf::from_str("/metadata/finalizers")
| _______________________________^
173 | | .map_err(|_err| Error::InvalidFinalizer)?,
| |_____________________________________________________________________^ expected `json_patch::jsonptr::PointerBuf`, found `jsonptr::PointerBuf`
|
= note: `?` operator cannot convert from `jsonptr::PointerBuf` to `json_patch::jsonptr::PointerBuf`
note: two different versions of crate `jsonptr` are being used; two types coming from two different versions of the same crate are different types even if they look the same
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jsonptr-0.6.3/src/pointer.rs:801:1
|
801 | pub struct PointerBuf(String);
| ^^^^^^^^^^^^^^^^^^^^^ this is the found type `jsonptr::PointerBuf`
|
::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jsonptr-0.7.1/src/pointer.rs:899:1
|
899 | pub struct PointerBuf(String);
| ^^^^^^^^^^^^^^^^^^^^^ this is the expected type `json_patch::jsonptr::PointerBuf`
|
::: kube-runtime/src/controller/mod.rs:22:5
|
22 | use kube_client::api::{Api, DynamicObject, Resource};
| ----------- one version of crate `jsonptr` used here, as a dependency of crate `json_patch`
|
::: kube-runtime/src/finalizer.rs:5:5
|
5 | use jsonptr::PointerBuf;
| ------- one version of crate `jsonptr` used here, as a direct dependency of the current crate
= help: you can use `cargo tree` to explore your dependency tree
|
`?` operator has incompatible types:
kube-runtime/src/finalizer.rs#L183
error[E0308]: `?` operator has incompatible types
--> kube-runtime/src/finalizer.rs:183:31
|
183 | path: PointerBuf::from_str("/metadata/finalizers")
| _______________________________^
184 | | .map_err(|_err| Error::InvalidFinalizer)?,
| |_____________________________________________________________________^ expected `json_patch::jsonptr::PointerBuf`, found `jsonptr::PointerBuf`
|
= note: `?` operator cannot convert from `jsonptr::PointerBuf` to `json_patch::jsonptr::PointerBuf`
note: two different versions of crate `jsonptr` are being used; two types coming from two different versions of the same crate are different types even if they look the same
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jsonptr-0.6.3/src/pointer.rs:801:1
|
801 | pub struct PointerBuf(String);
| ^^^^^^^^^^^^^^^^^^^^^ this is the found type `jsonptr::PointerBuf`
|
::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jsonptr-0.7.1/src/pointer.rs:899:1
|
899 | pub struct PointerBuf(String);
| ^^^^^^^^^^^^^^^^^^^^^ this is the expected type `json_patch::jsonptr::PointerBuf`
|
::: kube-runtime/src/controller/mod.rs:22:5
|
22 | use kube_client::api::{Api, DynamicObject, Resource};
| ----------- one version of crate `jsonptr` used here, as a dependency of crate `json_patch`
|
::: kube-runtime/src/finalizer.rs:5:5
|
5 | use jsonptr::PointerBuf;
| ------- one version of crate `jsonptr` used here, as a direct dependency of the current crate
= help: you can use `cargo tree` to explore your dependency tree
|
`?` operator has incompatible types:
kube-runtime/src/finalizer.rs#L188
error[E0308]: `?` operator has incompatible types
--> kube-runtime/src/finalizer.rs:188:31
|
188 | path: PointerBuf::from_str("/metadata/finalizers/-")
| _______________________________^
189 | | .map_err(|_err| Error::InvalidFinalizer)?,
| |_____________________________________________________________________^ expected `json_patch::jsonptr::PointerBuf`, found `jsonptr::PointerBuf`
|
= note: `?` operator cannot convert from `jsonptr::PointerBuf` to `json_patch::jsonptr::PointerBuf`
note: two different versions of crate `jsonptr` are being used; two types coming from two different versions of the same crate are different types even if they look the same
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jsonptr-0.6.3/src/pointer.rs:801:1
|
801 | pub struct PointerBuf(String);
| ^^^^^^^^^^^^^^^^^^^^^ this is the found type `jsonptr::PointerBuf`
|
::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jsonptr-0.7.1/src/pointer.rs:899:1
|
899 | pub struct PointerBuf(String);
| ^^^^^^^^^^^^^^^^^^^^^ this is the expected type `json_patch::jsonptr::PointerBuf`
|
::: kube-runtime/src/controller/mod.rs:22:5
|
22 | use kube_client::api::{Api, DynamicObject, Resource};
| ----------- one version of crate `jsonptr` used here, as a dependency of crate `json_patch`
|
::: kube-runtime/src/finalizer.rs:5:5
|
5 | use jsonptr::PointerBuf;
| ------- one version of crate `jsonptr` used here, as a direct dependency of the current crate
= help: you can use `cargo tree` to explore your dependency tree
|
clippy_nightly
Error: Clippy has exited with exit code 101
|