implement rust Repository #336
Annotations
3 errors and 4 warnings
typos
Process completed with exit code 2.
|
method `default` can be confused for the standard trait method `std::default::Default::default`:
rust/rust/src/repository.rs#L40
error: method `default` can be confused for the standard trait method `std::default::Default::default`
--> ./rust/rust/src/repository.rs:40:5
|
40 | / pub fn default() -> Ref<Self> {
41 | | let result = unsafe { BNGetRepositoryManager() };
42 | | unsafe { Self::ref_from_raw(ptr::NonNull::new(result).unwrap()) }
43 | | }
| |_____^
|
= help: consider implementing the trait `std::default::Default` or choosing a less ambiguous method name
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait
= note: `-D clippy::should-implement-trait` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::should_implement_trait)]`
|
cargo clippy
Error: Clippy has exited with exit code 101
|
typos:
rust/src/repository.rs#L117
"onwed" should be "owned".
|
typos:
rust/src/repository.rs#L579
"Directorys" should be "Directors" or "Directories".
|
typos:
rust/src/repository.rs#L580
"Directorys" should be "Directors" or "Directories".
|
typos:
rust/src/repository.rs#L586
"Directorys" should be "Directors" or "Directories".
|