mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 10:23:23 +00:00
Fix OSDK lint warnings from the new tool-chain
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
002a67451d
commit
e78303b01a
@ -170,7 +170,7 @@ fn get_src_path<'a>(cargo_metadata: &'a serde_json::Value, crate_name: &str) ->
|
|||||||
|
|
||||||
let target = &targets[0];
|
let target = &targets[0];
|
||||||
let src_path = target.get("src_path").unwrap();
|
let src_path = target.get("src_path").unwrap();
|
||||||
return src_path.as_str().unwrap();
|
src_path.as_str().unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_workspace_root(cargo_metadata: &serde_json::Value) -> &str {
|
fn get_workspace_root(cargo_metadata: &serde_json::Value) -> &str {
|
||||||
|
@ -168,7 +168,7 @@ impl<'de> Deserialize<'de> for TomlManifest {
|
|||||||
{
|
{
|
||||||
struct FieldVisitor;
|
struct FieldVisitor;
|
||||||
|
|
||||||
impl<'de> de::Visitor<'de> for FieldVisitor {
|
impl de::Visitor<'_> for FieldVisitor {
|
||||||
type Value = Field;
|
type Value = Field;
|
||||||
|
|
||||||
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
||||||
|
@ -248,4 +248,6 @@ pub fn trace_panic_from_log(qemu_log: File, bin_path: PathBuf) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
addr2line_proc.kill().unwrap();
|
||||||
|
addr2line_proc.wait().unwrap();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user