Skip to content

Shift edition to 2024 and upgrade schemars #3606

Shift edition to 2024 and upgrade schemars

Shift edition to 2024 and upgrade schemars #3606

Triggered via pull request December 12, 2024 05:35
Status Failure
Total duration 52s
Artifacts

clippy.yml

on: pull_request
clippy_nightly
44s
clippy_nightly
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 3 warnings
unresolved imports `schemars::schema::InstanceType`, `schemars::schema::Metadata`, `schemars::schema::ObjectValidation`, `schemars::schema::SchemaObject`, `schemars::schema::SingleOrVec`, `schemars::visit`, `schemars::MapEntry`: kube-core/src/schema.rs#L9
error[E0432]: unresolved imports `schemars::schema::InstanceType`, `schemars::schema::Metadata`, `schemars::schema::ObjectValidation`, `schemars::schema::SchemaObject`, `schemars::schema::SingleOrVec`, `schemars::visit`, `schemars::MapEntry` --> kube-core/src/schema.rs:9:14 | 9 | schema::{InstanceType, Metadata, ObjectValidation, Schema, SchemaObject, SingleOrVec}, | ^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^ no `SingleOrVec` in `schema` | | | | | | | | | no `SchemaObject` in `schema` | | | no `ObjectValidation` in `schema` | | no `Metadata` in `schema` | no `InstanceType` in `schema` 10 | visit::Visitor, | ^^^^^ could not find `visit` in `schemars` 11 | MapEntry, | ^^^^^^^^ no `MapEntry` in the root | = help: consider importing one of these items instead: std::fs::Metadata k8s_openapi::Metadata
failed to resolve: could not find `visit` in `schemars`: kube-core/src/schema.rs#L33
error[E0433]: failed to resolve: could not find `visit` in `schemars` --> kube-core/src/schema.rs:33:19 | 33 | schemars::visit::visit_schema_object(self, schema); | ^^^^^ could not find `visit` in `schemars`
cannot find type `SchemaObject` in `schemars::schema`: kube-core/src/schema.rs#L32
error[E0412]: cannot find type `SchemaObject` in `schemars::schema` --> kube-core/src/schema.rs:32:70 | 32 | fn visit_schema_object(&mut self, schema: &mut schemars::schema::SchemaObject) { | ^^^^^^^^^^^^ not found in `schemars::schema`
module `schema` is private: kube-core/src/schema.rs#L9
error[E0603]: module `schema` is private --> kube-core/src/schema.rs:9:5 | 9 | schema::{InstanceType, Metadata, ObjectValidation, Schema, SchemaObject, SingleOrVec}, | ^^^^^^ private module | note: the module `schema` is defined here --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/schemars-1.0.0-alpha.17/src/lib.rs:24:1 | 24 | mod schema; | ^^^^^^^^^^
module `schema` is private: kube-core/src/schema.rs#L32
error[E0603]: module `schema` is private --> kube-core/src/schema.rs:32:62 | 32 | fn visit_schema_object(&mut self, schema: &mut schemars::schema::SchemaObject) { | ^^^^^^ private module | note: the module `schema` is defined here --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/schemars-1.0.0-alpha.17/src/lib.rs:24:1 | 24 | mod schema; | ^^^^^^^^^^
method `is_referenceable` is not a member of trait `schemars::JsonSchema`: kube-core/src/duration.rs#L280
error[E0407]: method `is_referenceable` is not a member of trait `schemars::JsonSchema` --> kube-core/src/duration.rs:280:5 | 280 | / fn is_referenceable() -> bool { 281 | | false 282 | | } | |_____^ not a member of trait `schemars::JsonSchema`
failed to resolve: could not find `InstanceType` in `schema`: kube-core/src/duration.rs#L286
error[E0433]: failed to resolve: could not find `InstanceType` in `schema` --> kube-core/src/duration.rs:286:51 | 286 | instance_type: Some(schemars::schema::InstanceType::String.into()), | ^^^^^^^^^^^^ could not find `InstanceType` in `schema`
cannot find struct, variant or union type `SchemaObject` in `schemars::schema`: kube-core/src/duration.rs#L285
error[E0422]: cannot find struct, variant or union type `SchemaObject` in `schemars::schema` --> kube-core/src/duration.rs:285:27 | 285 | schemars::schema::SchemaObject { | ^^^^^^^^^^^^ not found in `schemars::schema`
module `schema` is private: kube-core/src/duration.rs#L284
error[E0603]: module `schema` is private --> kube-core/src/duration.rs:284:73 | 284 | fn json_schema(_: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { | ^^^^^^ private module | note: the module `schema` is defined here --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/schemars-1.0.0-alpha.17/src/lib.rs:24:1 | 24 | mod schema; | ^^^^^^^^^^ help: consider importing this struct instead | 284 | fn json_schema(_: &mut schemars::gen::SchemaGenerator) -> schemars::Schema { | ~~~~~~~~~~~~~~~~
module `schema` is private: kube-core/src/duration.rs#L285
error[E0603]: module `schema` is private --> kube-core/src/duration.rs:285:19 | 285 | schemars::schema::SchemaObject { | ^^^^^^ private module | note: the module `schema` is defined here --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/schemars-1.0.0-alpha.17/src/lib.rs:24:1 | 24 | mod schema; | ^^^^^^^^^^
clippy_nightly
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
use of deprecated type alias `schemars::r#gen::SchemaSettings`: Only included for backward-compatibility - use `schemars::generate::SchemaSettings` instead.: kube-core/src/schema.rs#L6
warning: use of deprecated type alias `schemars::r#gen::SchemaSettings`: Only included for backward-compatibility - use `schemars::generate::SchemaSettings` instead. --> kube-core/src/schema.rs:6:45 | 6 | #[allow(unused_imports)] use schemars::gen::SchemaSettings; | ^^^^^^^^^^^^^^
use of deprecated type alias `schemars::r#gen::SchemaGenerator`: Only included for backward-compatibility - use `schemars::SchemaGenerator` or `schemars::generate::SchemaGenerator` instead.: kube-core/src/duration.rs#L284
warning: use of deprecated type alias `schemars::r#gen::SchemaGenerator`: Only included for backward-compatibility - use `schemars::SchemaGenerator` or `schemars::generate::SchemaGenerator` instead. --> kube-core/src/duration.rs:284:43 | 284 | fn json_schema(_: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { | ^^^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default