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