mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 17:58:55 +00:00
fix compile error
This commit is contained in:
1 parent
32b1d445e0
commit
875a023f5e
1 file changed
+1
-1
+1
-1
@@ -105,7 +105,7 @@ impl StageTwoJsonLoader {
|
||||
})
|
||||
}
|
||||
|
||||
fn load_string_from_json(json: &Value, key_name: &str) -> AnyhowResult<&str> {
|
||||
fn load_string_from_json<'a>(json: &'a Value, key_name: &'a str) -> AnyhowResult<&'a str> {
|
||||
Ok(json.get(key_name)
|
||||
.ok_or(anyhow!("{} not found in json", key_name))?
|
||||
.as_str()
|
||||
|
||||
Reference in new issue
Block a user