diff --git a/src/stremio_app/ipc.rs b/src/stremio_app/ipc.rs index e491e57..a02191f 100644 --- a/src/stremio_app/ipc.rs +++ b/src/stremio_app/ipc.rs @@ -22,10 +22,10 @@ impl RPCRequest { .and_then(|args| args.first()) .and_then(|arg| arg.as_str()) } - pub fn get_params(&self) -> Option { + pub fn get_params(&self) -> Option<&serde_json::Value> { self.args.as_ref().and_then(|args| { if args.len() > 1 { - Some(args[1].clone()) + Some(&args[1]) } else { None }