mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 11:53:24 +00:00
Fix workspace clippy usage
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
7eac2772d0
commit
f415585dff
@ -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;
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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() {
|
||||
|
Reference in New Issue
Block a user