Fix multiple deprecation problems

This commit is contained in:
Zhang Junyang
2024-06-20 16:09:42 +00:00
committed by Tate, Hongliang Tian
parent cda8ffa7da
commit 952fbacaf1
8 changed files with 28 additions and 18 deletions

View File

@ -152,7 +152,7 @@ fn match_and_call(
} else {
panic!("The path of {} cannot recognized by component system", str);
}
str = str.trim_end_matches('/').to_owned();
let str = str.trim_end_matches('/').to_owned();
let mut info = components
.remove(&str)