Skip to content

Rust bindings refactor #283

Rust bindings refactor

Rust bindings refactor #283

Triggered via pull request January 23, 2025 04:09
Status Cancelled
Total duration 4d 21h 3m 7s
Artifacts

rust.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 8 warnings
typos
Process completed with exit code 2.
cargo fmt
Process completed with exit code 1.
unused imports: `mem` and `ptr`: rust/rust/src/collaboration/changeset.rs#L2
error: unused imports: `mem` and `ptr` --> ./rust/rust/src/collaboration/changeset.rs:2:17 | 2 | use core::{ffi, mem, ptr}; | ^^^ ^^^ | = note: `-D unused-imports` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_imports)]`
associated function `ref_from_raw` is never used: rust/rust/src/collaboration/changeset.rs#L23
error: associated function `ref_from_raw` is never used --> ./rust/rust/src/collaboration/changeset.rs:23:26 | 18 | impl Changeset { | -------------- associated function in this implementation ... 23 | pub(crate) unsafe fn ref_from_raw(handle: NonNull<BNCollaborationChangeset>) -> Ref<Self> { | ^^^^^^^^^^^^ | = note: `-D dead-code` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(dead_code)]`
unused import: `mem`: rust/rust/src/collaboration/file.rs#L1
error: unused import: `mem` --> ./rust/rust/src/collaboration/file.rs:1:17 | 1 | use core::{ffi, mem, ptr}; | ^^^
unused import: `crate::database::snapshot::Snapshot`: rust/rust/src/collaboration/folder.rs#L2
error: unused import: `crate::database::snapshot::Snapshot` --> ./rust/rust/src/collaboration/folder.rs:2:5 | 2 | use crate::database::snapshot::Snapshot; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `mem`: rust/rust/src/collaboration/folder.rs#L4
error: unused import: `mem` --> ./rust/rust/src/collaboration/folder.rs:4:17 | 4 | use core::{ffi, mem, ptr}; | ^^^
unused import: `crate::database::snapshot::SnapshotId`: rust/rust/src/collaboration/group.rs#L2
error: unused import: `crate::database::snapshot::SnapshotId` --> ./rust/rust/src/collaboration/group.rs:2:5 | 2 | use crate::database::snapshot::SnapshotId; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `mem`: rust/rust/src/collaboration/group.rs#L6
error: unused import: `mem` --> ./rust/rust/src/collaboration/group.rs:6:17 | 6 | use core::{ffi, mem, ptr}; | ^^^
unused imports: `mem` and `ptr`: rust/rust/src/collaboration/merge.rs#L2
error: unused imports: `mem` and `ptr` --> ./rust/rust/src/collaboration/merge.rs:2:17 | 2 | use core::{ffi, mem, ptr}; | ^^^ ^^^
associated function `ref_from_raw` is never used: rust/rust/src/collaboration/merge.rs#L23
error: associated function `ref_from_raw` is never used --> ./rust/rust/src/collaboration/merge.rs:23:26 | 18 | impl MergeConflict { | ------------------ associated function in this implementation ... 23 | pub(crate) unsafe fn ref_from_raw(handle: NonNull<BNAnalysisMergeConflict>) -> Ref<Self> { | ^^^^^^^^^^^^
unused import: `mem`: rust/rust/src/collaboration/project.rs#L1
error: unused import: `mem` --> ./rust/rust/src/collaboration/project.rs:1:17 | 1 | use core::{ffi, mem, ptr}; | ^^^
cargo test
The run was canceled by @emesare.
typos: rust/src/collaboration/file.rs#L354
"droping" should be "dropping".
typos: rust/src/collaboration/snapshot.rs#L134
"entires" should be "entries".
typos: rust/src/collaboration/snapshot.rs#L183
"entires" should be "entries".
typos: rust/src/collaboration/snapshot.rs#L198
"entires" should be "entries".
typos: rust/src/collaboration/remote.rs#L224
"loggin" should be "login" or "logging".
typos: rust/src/collaboration/remote.rs#L231
"loggin" should be "login" or "logging".
cargo fmt: rust/src/collaboration/remote.rs#L237
Diff in /home/runner/work/binaryninja-api/binaryninja-api/rust/src/collaboration/remote.rs
cargo clippy
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636