Skip to content

Commit 1e80382

Browse files
aw-android: Fix compilation after rocket 0.5 upgrade
1 parent 6ba7b78 commit 1e80382

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

aw-server/src/android/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ pub mod android {
8989
}
9090

9191
unsafe fn create_error_object(env: &JNIEnv, msg: String) -> jstring {
92-
let mut obj = json!({});
93-
obj["error"] = json!(msg).0;
92+
let mut obj = json!({ "error", &msg });
9493
string_to_jstring(&env, obj.to_string())
9594
}
9695

0 commit comments

Comments
 (0)