Fix workspace clippy usage

This commit is contained in:
Zhang Junyang
2024-02-28 00:44:55 +08:00
committed by Tate, Hongliang Tian
parent 7eac2772d0
commit f415585dff
19 changed files with 181 additions and 179 deletions

View File

@ -4,7 +4,11 @@
//! It will depend on the kernel crate.
//!
use std::{fs, path::{Path, PathBuf}, str::FromStr};
use std::{
fs,
path::{Path, PathBuf},
str::FromStr,
};
use crate::util::get_cargo_metadata;

View File

@ -117,7 +117,11 @@ pub fn do_build(
bundle
}
fn build_kernel_elf(args: &CargoArgs, cargo_target_directory: impl AsRef<Path>, rustflags: &[&str]) -> AsterBin {
fn build_kernel_elf(
args: &CargoArgs,
cargo_target_directory: impl AsRef<Path>,
rustflags: &[&str],
) -> AsterBin {
let target = "x86_64-unknown-none";
let env_rustflags = std::env::var("RUSTFLAGS").unwrap_or_default();

View File

@ -10,7 +10,7 @@ pub fn execute_check_command() {
command
.arg("check")
.arg("--target")
.arg("x86_64-unkown-none");
.arg("x86_64-unknown-none");
command.args(COMMON_CARGO_ARGS);
let status = command.status().unwrap();
if !status.success() {