Skip to content

implement rust Repository #336

implement rust Repository

implement rust Repository #336

Triggered via pull request February 5, 2025 17:05
Status Failure
Total duration 32s
Artifacts

rust.yml

on: pull_request
Fit to window
Zoom out
Zoom in

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".