Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cargo clippy warnings for android for ios
Errors: warning: unused imports: `ipaddr_to_sockaddr`, `sockaddr_union` --> src/platform/posix/mod.rs:18:27 | 18 | pub(crate) use sockaddr::{ipaddr_to_sockaddr, sockaddr_union}; | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: function `ipaddr_to_sockaddr` is never used --> src/platform/posix/sockaddr.rs:63:15 | 63 | pub unsafe fn ipaddr_to_sockaddr<T>( | ^^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default error: this expression creates a reference which is immediately dereferenced by the compiler --> src/platform/android/mod.rs:29:17 | 29 | Device::new(&configuration) | ^^^^^^^^^^^^^^ help: change this to: `configuration` error: this expression creates a reference which is immediately dereferenced by the compiler --> src/platform/ios/mod.rs:58:17 | 58 | Device::new(&configuration) | ^^^^^^^^^^^^^^ help: change this to: `configuration`
- Loading branch information