Skip to content

Merge pull request #41 from siketyan/dependabot/cargo/mio-0.8.11 #106

Merge pull request #41 from siketyan/dependabot/cargo/mio-0.8.11

Merge pull request #41 from siketyan/dependabot/cargo/mio-0.8.11 #106

GitHub Actions / clippy succeeded Mar 5, 2024 in 0s

clippy

3 warnings

Details

Results

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

Versions

  • rustc 1.76.0 (07dca489a 2024-02-04)
  • cargo 1.76.0 (c84b36747 2024-01-18)
  • clippy 0.1.76 (07dca48 2024-02-04)

Annotations

Check warning on line 89 in app/src/plugin.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`extern` fn uses type `dyn autoclip_core::PluginRegistrar`, which is not FFI-safe

warning: `extern` fn uses type `dyn autoclip_core::PluginRegistrar`, which is not FFI-safe
  --> app/src/plugin.rs:89:19
   |
89 |         function: unsafe extern "C" fn(&mut dyn autoclip_core::PluginRegistrar) -> (),
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
   |
   = note: trait objects have no C equivalent
   = note: `#[warn(improper_ctypes_definitions)]` on by default

Check warning on line 57 in app/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

writing `&PathBuf` instead of `&Path` involves a new object where a slice will do

warning: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do
  --> app/src/main.rs:57:19
   |
57 |     plugins_path: &PathBuf,
   |                   ^^^^^^^^ help: change this to: `&Path`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
   = note: `#[warn(clippy::ptr_arg)]` on by default

Check warning on line 26 in core/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`extern` fn uses type `dyn PluginRegistrar`, which is not FFI-safe

warning: `extern` fn uses type `dyn PluginRegistrar`, which is not FFI-safe
  --> core/src/lib.rs:26:19
   |
26 |     pub register: unsafe extern "C" fn(&mut dyn PluginRegistrar),
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
   |
   = note: trait objects have no C equivalent
   = note: `#[warn(improper_ctypes_definitions)]` on by default