Nodes #57
Annotations
5 warnings
`extern` fn uses type `dyn core::ops::FnMut() -> core::result::Result<x86_64::Page4K, ()>`, which is not FFI-safe:
node/src/main.rs#L28
warning: `extern` fn uses type `dyn core::ops::FnMut() -> core::result::Result<x86_64::Page4K, ()>`, which is not FFI-safe
--> node/src/main.rs:28:35
|
28 | pub extern "C" fn init(allocator: &dyn FnMut() -> Result<arch::Page4K, ()>) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
|
= note: trait objects have no C equivalent
= note: `#[warn(improper_ctypes_definitions)]` on by default
|
function `init` is never used:
node/src/x86_64/gdt.rs#L27
warning: function `init` is never used
--> node/src/x86_64/gdt.rs:27:15
|
27 | pub(crate) fn init(task_state: &arch::tss::TSS) {
| ^^^^
|
static `INITED` is never used:
node/src/x86_64/gdt.rs#L13
warning: static `INITED` is never used
--> node/src/x86_64/gdt.rs:13:8
|
13 | static INITED: AtomicBool = AtomicBool::new(false);
| ^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
unused variable: `allocator`:
node/src/main.rs#L28
warning: unused variable: `allocator`
--> node/src/main.rs:28:24
|
28 | pub extern "C" fn init(allocator: &dyn FnMut() -> Result<arch::Page4K, ()>) {
| ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_allocator`
|
= note: `#[warn(unused_variables)]` on by default
|
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|