fix for rust-analyzer warning

This commit is contained in:
Yu Chen 2022-12-31 11:01:10 +08:00
parent 8d857c5a53
commit e5daa738c5
6 changed files with 9 additions and 17 deletions

View File

@ -7,7 +7,7 @@
// For Rust Analyzer plugin users:
"rust-analyzer.cargo.target": "riscv64gc-unknown-none-elf",
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.cargo.features": [
"board_qemu"
]
// "rust-analyzer.cargo.features": [
// "board_qemu"
// ]
}

View File

@ -11,6 +11,6 @@ clap = "2.33.3"
easy-fs = { path = "../easy-fs" }
rand = "0.8.0"
[features]
board_qemu = []
board_k210 = []
# [features]
# board_qemu = []
# board_k210 = []

View File

@ -14,6 +14,6 @@ riscv = { git = "https://github.com/rcore-os/riscv", features = ["inline-asm"] }
[profile.release]
debug = true
[features]
board_qemu = []
board_k210 = []
# [features]
# board_qemu = []
# board_k210 = []

View File

@ -3,7 +3,6 @@
extern crate user_lib;
// use user_lib::{sigaction, sigprocmask, SignalAction, SignalFlags, fork, exit, wait, kill, getpid, sleep, sigreturn};
use user_lib::*;
fn func() {

View File

@ -3,12 +3,6 @@
extern crate user_lib;
/*
use user_lib::{
exit, fork, getpid, kill, sigaction, sigprocmask, sigreturn, sleep, waitpid, SignalAction,
SignalFlags,
};
*/
use user_lib::*;
fn func() {

View File

@ -3,7 +3,6 @@
extern crate user_lib;
// use user_lib::{sigaction, sigprocmask, SignalAction, SignalFlags, fork, exit, wait, kill, getpid, sleep, sigreturn};
use user_lib::*;
fn func() {