Experimental MCP implementation #40
Annotations
4 warnings
Create binary for x86_64-unknown-linux-gnu:
otel-worker-cli/src/commands/mcp/stdio.rs#L90
[clippy] reported by reviewdog 🐶
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> otel-worker-cli/src/commands/mcp/stdio.rs:90:42
|
90 | super::handle_initialize(&state, inner_request.params)
| ^^^^^^ help: change this to: `state`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
Raw Output:
otel-worker-cli/src/commands/mcp/stdio.rs:90:42:w:warning: this expression creates a reference which is immediately dereferenced by the compiler
--> otel-worker-cli/src/commands/mcp/stdio.rs:90:42
|
90 | super::handle_initialize(&state, inner_request.params)
| ^^^^^^ help: change this to: `state`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
__END__
|
Create binary for x86_64-unknown-linux-gnu:
otel-worker-cli/src/commands/mcp/stdio.rs#L95
[clippy] reported by reviewdog 🐶
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> otel-worker-cli/src/commands/mcp/stdio.rs:95:46
|
95 | super::handle_resources_list(&state, inner_request.params)
| ^^^^^^ help: change this to: `state`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Raw Output:
otel-worker-cli/src/commands/mcp/stdio.rs:95:46:w:warning: this expression creates a reference which is immediately dereferenced by the compiler
--> otel-worker-cli/src/commands/mcp/stdio.rs:95:46
|
95 | super::handle_resources_list(&state, inner_request.params)
| ^^^^^^ help: change this to: `state`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
__END__
|
Create binary for x86_64-unknown-linux-gnu:
otel-worker-cli/src/commands/mcp/stdio.rs#L100
[clippy] reported by reviewdog 🐶
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> otel-worker-cli/src/commands/mcp/stdio.rs:100:46
|
100 | super::handle_resources_read(&state, inner_request.params)
| ^^^^^^ help: change this to: `state`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Raw Output:
otel-worker-cli/src/commands/mcp/stdio.rs:100:46:w:warning: this expression creates a reference which is immediately dereferenced by the compiler
--> otel-worker-cli/src/commands/mcp/stdio.rs:100:46
|
100 | super::handle_resources_read(&state, inner_request.params)
| ^^^^^^ help: change this to: `state`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
__END__
|
Create binary for x86_64-unknown-linux-gnu:
otel-worker-cli/src/commands/mcp.rs#L80
[clippy] reported by reviewdog 🐶
warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
--> otel-worker-cli/src/commands/mcp.rs:80:17
|
80 | / match msg.details {
81 | | models::ServerMessageDetails::SpanAdded(_span_added) => {
82 | | let data = ResourceListChangedNotification::new(None);
83 | | let message = ServerMessage::Notification(data.into());
... |
86 | | _ => (),
87 | | }
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match
= note: `#[warn(clippy::single_match)]` on by default
help: try
|
80 ~ if let models::ServerMessageDetails::SpanAdded(_span_added) = msg.details {
81 + let data = ResourceListChangedNotification::new(None);
82 + let message = ServerMessage::Notification(data.into());
83 + ws_sender.send(message).ok();
84 + }
|
Raw Output:
otel-worker-cli/src/commands/mcp.rs:80:17:w:warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
--> otel-worker-cli/src/commands/mcp.rs:80:17
|
80 | / match msg.details {
81 | | models::ServerMessageDetails::SpanAdded(_span_added) => {
82 | | let data = ResourceListChangedNotification::new(None);
83 | | let message = ServerMessage::Notification(data.into());
... |
86 | | _ => (),
87 | | }
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match
= note: `#[warn(clippy::single_match)]` on by default
help: try
|
80 ~ if let models::ServerMessageDetails::SpanAdded(_span_added) = msg.details {
81 + let data = ResourceListChangedNotification::new(None);
82 + let message = ServerMessage::Notification(data.into());
83 + ws_sender.send(message).ok();
84 + }
|
__END__
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
otel-worker-cli_x86_64-unknown-linux-gnu
|
7.83 MB |
|