mullvad / windows-service-rs

Windows services in Rust
Apache License 2.0
521 stars 85 forks source link

"unsafe" issues #130

Closed ssrlive closed 5 months ago

ssrlive commented 5 months ago

$ cargo clippy --all-targets --all-features -- -D warnings

error: this public function might dereference a raw pointer but is not marked `unsafe`
 --> src\win_svc.rs:3:1
  |
3 | windows_service::define_windows_service!(ffi_service_main, my_service_main);
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref
  = note: `#[deny(clippy::not_unsafe_ptr_arg_deref)]` on by default
  = note: this error originates in the macro `windows_service::define_windows_service` (in Nightly builds, run with -Z macro-backtrace for more info)
ssrlive commented 5 months ago

Well, it's all OK while I delete ~/.cargo/registry/ folder.