We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
new
1 parent 836537b commit f5faf62Copy full SHA for f5faf62
rust/ext.rs
@@ -16,10 +16,10 @@ pub struct ExtRequest {
16
}
17
18
impl ExtRequest {
19
- pub fn new(method: impl Into<Arc<str>>, params: impl Into<Arc<RawValue>>) -> Self {
+ pub fn new(method: impl Into<Arc<str>>, params: Arc<RawValue>) -> Self {
20
Self {
21
method: method.into(),
22
- params: params.into(),
+ params,
23
24
25
@@ -37,10 +37,10 @@ pub struct ExtNotification {
37
38
39
impl ExtNotification {
40
41
42
43
44
45
46
0 commit comments