Fix OSDK lint warnings from the new tool-chain

This commit is contained in:
Zhang Junyang
2024-10-14 10:48:25 +08:00
committed by Tate, Hongliang Tian
parent 002a67451d
commit e78303b01a
3 changed files with 4 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -248,4 +248,6 @@ pub fn trace_panic_from_log(qemu_log: File, bin_path: PathBuf) {
} }
} }
} }
addr2line_proc.kill().unwrap();
addr2line_proc.wait().unwrap();
} }