Fix workspace test build warnings
This commit is contained in:
@@ -4,7 +4,7 @@ use std::process::{Command, Stdio};
|
||||
use std::sync::{Arc, Mutex, OnceLock};
|
||||
|
||||
use bds_core::scripting::AppHostHandler;
|
||||
use serde_json::{Value, json};
|
||||
use serde_json::Value;
|
||||
|
||||
use super::menu::MenuAction;
|
||||
|
||||
@@ -123,7 +123,7 @@ mod tests {
|
||||
#[test]
|
||||
fn desktop_handler_queues_supported_menu_actions() {
|
||||
let queued = Arc::new(Mutex::new(Vec::new()));
|
||||
handler(Arc::clone(&queued), String::new())("trigger_menu_action", &[json!("new_post")])
|
||||
handler(Arc::clone(&queued), String::new())("trigger_menu_action", &[serde_json::json!("new_post")])
|
||||
.unwrap();
|
||||
assert_eq!(queued.lock().unwrap().as_slice(), &[MenuAction::NewPost]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user