style: code style
This commit is contained in:
@@ -70,7 +70,7 @@ async fn main() {
|
||||
result.insert("status", "400".to_owned());
|
||||
result.insert("message", "Script verify failed!".to_owned());
|
||||
result.insert("js_hash", format!("{}", js_hex));
|
||||
return serde_json::to_string_pretty(&result).unwrap()
|
||||
return serde_json::to_string_pretty(&result).unwrap();
|
||||
}
|
||||
|
||||
let context = QuickJSContext::new().unwrap();
|
||||
@@ -92,7 +92,7 @@ async fn main() {
|
||||
result.insert("result", r.into_string().unwrap_or_else(|| "null".to_owned()));
|
||||
},
|
||||
}
|
||||
return serde_json::to_string_pretty(&result).unwrap()
|
||||
serde_json::to_string_pretty(&result).unwrap()
|
||||
});
|
||||
|
||||
println!("Listen at 127.0.0.1:8888 ...");
|
||||
|
||||
Reference in New Issue
Block a user