Skip to content

Merge pull request #49 from oscartbeaumont/custom-plugin-example #74

Merge pull request #49 from oscartbeaumont/custom-plugin-example

Merge pull request #49 from oscartbeaumont/custom-plugin-example #74

GitHub Actions / clippy failed Sep 12, 2023 in 1s

clippy

7 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 7
Warning 0
Note 0
Help 0

Versions

  • rustc 1.72.0 (5680fa18f 2023-08-23)
  • cargo 1.72.0 (103a7ff2e 2023-08-15)
  • clippy 0.1.72 (5680fa1 2023-08-23)

Annotations

Check failure on line 403 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the size for values of type `[event::EventDataType]` cannot be known at compilation time

error[E0277]: the size for values of type `[event::EventDataType]` cannot be known at compilation time
   --> src/lib.rs:403:20
    |
403 |             &events?,
    |                    ^ doesn't have a size known at compile-time
    |
    = help: the trait `std::marker::Sized` is not implemented for `[event::EventDataType]`
note: required by a bound in `std::ops::ControlFlow::Break`
   --> /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/control_flow.rs:93:5

Check failure on line 403 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the size for values of type `[event::EventDataType]` cannot be known at compilation time

error[E0277]: the size for values of type `[event::EventDataType]` cannot be known at compilation time
   --> src/lib.rs:403:14
    |
403 |             &events?,
    |              ^^^^^^^ doesn't have a size known at compile-time
    |
    = help: the trait `std::marker::Sized` is not implemented for `[event::EventDataType]`
    = note: all local variables must have a statically known size
    = help: unsized locals are gated as an unstable feature

Check failure on line 397 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the size for values of type `[specta::functions::FunctionDataType]` cannot be known at compilation time

error[E0277]: the size for values of type `[specta::functions::FunctionDataType]` cannot be known at compilation time
   --> src/lib.rs:397:45
    |
397 |         let (commands, commands_type_map) = macro_data?;
    |                                             ^^^^^^^^^^^ doesn't have a size known at compile-time
    |
    = help: the trait `std::marker::Sized` is not implemented for `[specta::functions::FunctionDataType]`
    = note: only the last element of a tuple may have a dynamically sized type

Check failure on line 397 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the size for values of type `[specta::functions::FunctionDataType]` cannot be known at compilation time

error[E0277]: the size for values of type `[specta::functions::FunctionDataType]` cannot be known at compilation time
   --> src/lib.rs:397:14
    |
397 |         let (commands, commands_type_map) = macro_data?;
    |              ^^^^^^^^ doesn't have a size known at compile-time
    |
    = help: the trait `std::marker::Sized` is not implemented for `[specta::functions::FunctionDataType]`
    = note: all local variables must have a statically known size
    = help: unsized locals are gated as an unstable feature

Check failure on line 222 in src/event.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find type `ExportError` in crate `specta`

error[E0412]: cannot find type `ExportError` in crate `specta`
   --> src/event.rs:222:40
    |
222 |     Result<Vec<EventDataType>, specta::ExportError>,
    |                                        ^^^^^^^^^^^ not found in `specta`

Check failure on line 112 in src/js.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find function `named_datatype` in module `ts`

error[E0425]: cannot find function `named_datatype` in module `ts`
   --> src/js.rs:112:21
    |
112 |                 ts::named_datatype(&cfg.inner, v, type_map).map(|typ| {
    |                     ^^^^^^^^^^^^^^ help: a function with a similar name exists: `enum_datatype`
    |
   ::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/specta-2.0.0-rc.2/src/lang/ts/mod.rs:373:1
    |
373 | fn enum_datatype(ctx: ExportContext, e: &EnumType, type_map: &TypeMap) -> Output {
    | -------------------------------------------------------------------------------- similarly named function `enum_datatype` defined here

Check failure on line 103 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `specta::ExportError`

error[E0432]: unresolved import `specta::ExportError`
   --> src/lib.rs:103:62
    |
103 | use specta::{functions::FunctionDataType, ts::TsExportError, ExportError, TypeMap};
    |                                                              ^^^^^^^^^^^ no `ExportError` in the root