okapi
okapi copied to clipboard
Conflict with kube-rs when importing rocket-okapi
error[E0308]: mismatched types
--> /home/cappy/.cargo/registry/src/github.com-1ecc6299db9ec823/kube-core-0.74.0/src/schema.rs:68:29
|
67 | match common_obj.properties.entry(property_name) {
| ------------------------------------------ this expression has type `indexmap::map::core::Entry<'_, std::string::String, schemars::schema::Schema>`
68 | Entry::Occupied(entry) => panic!(
| ^^^^^^^^^^^^^^^^^^^^^^ expected enum `indexmap::map::core::Entry`, found enum `std::collections::btree_map::Entry`
|
= note: expected enum `indexmap::map::core::Entry<'_, std::string::String, schemars::schema::Schema>`
found enum `std::collections::btree_map::Entry<'_, _, _>`
error[E0308]: mismatched types
--> /home/cappy/.cargo/registry/src/github.com-1ecc6299db9ec823/kube-core-0.74.0/src/schema.rs:72:29
|
67 | match common_obj.properties.entry(property_name) {
| ------------------------------------------ this expression has type `indexmap::map::core::Entry<'_, std::string::String, schemars::schema::Schema>`
...
72 | Entry::Vacant(entry) => {
| ^^^^^^^^^^^^^^^^^^^^ expected enum `indexmap::map::core::Entry`, found enum `std::collections::btree_map::Entry`
|
= note: expected enum `indexmap::map::core::Entry<'_, std::string::String, schemars::schema::Schema>`
found enum `std::collections::btree_map::Entry<'_, _, _>`
For more information about this error, try `rustc --explain E0308`.
error: could not compile `kube-core` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...