Experimental MCP implementation #38
Annotations
2 errors and 2 warnings
Create binary for x86_64-unknown-linux-gnu:
otel-worker-cli/src/commands/mcp/stdio.rs#L65
[clippy] reported by reviewdog 🐶
error: written amount is not handled
--> otel-worker-cli/src/commands/mcp/stdio.rs:65:21
|
65 | / stdout
66 | | .write(b"\n")
67 | | .expect("TODO: should be able to write to stdout");
| |__________________________________________________________________________^
|
= help: use `Write::write_all` instead, or handle partial writes
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount
= note: `#[deny(clippy::unused_io_amount)]` on by default
Raw Output:
otel-worker-cli/src/commands/mcp/stdio.rs:65:21:e:error: written amount is not handled
--> otel-worker-cli/src/commands/mcp/stdio.rs:65:21
|
65 | / stdout
66 | | .write(b"\n")
67 | | .expect("TODO: should be able to write to stdout");
| |__________________________________________________________________________^
|
= help: use `Write::write_all` instead, or handle partial writes
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount
= note: `#[deny(clippy::unused_io_amount)]` on by default
__END__
|
Create binary for x86_64-unknown-linux-gnu
reviewdog exited with status code: 1
|
Create binary for x86_64-unknown-linux-gnu:
otel-worker-core/src/api/models/otel.rs#L82
[clippy] reported by reviewdog 🐶
warning: useless conversion to the same type: `opentelemetry_proto::tonic::trace::v1::span::Link`
--> otel-worker-core/src/api/models/otel.rs:82:63
|
82 | let links: Vec<_> = span.links.into_iter().map(Into::into).collect();
| ^^^^^^^^^^^^^^^^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
Raw Output:
otel-worker-core/src/api/models/otel.rs:82:63:w:warning: useless conversion to the same type: `opentelemetry_proto::tonic::trace::v1::span::Link`
--> otel-worker-core/src/api/models/otel.rs:82:63
|
82 | let links: Vec<_> = span.links.into_iter().map(Into::into).collect();
| ^^^^^^^^^^^^^^^^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
__END__
|
Create binary for x86_64-unknown-linux-gnu:
otel-worker-core/src/api/models/otel.rs#L106
[clippy] reported by reviewdog 🐶
warning: useless conversion to the same type: `opentelemetry_proto::tonic::trace::v1::Status`
--> otel-worker-core/src/api/models/otel.rs:106:44
|
106 | status: span.status.map(Into::into),
| ^^^^^^^^^^^^^^^^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
Raw Output:
otel-worker-core/src/api/models/otel.rs:106:44:w:warning: useless conversion to the same type: `opentelemetry_proto::tonic::trace::v1::Status`
--> otel-worker-core/src/api/models/otel.rs:106:44
|
106 | status: span.status.map(Into::into),
| ^^^^^^^^^^^^^^^^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
__END__
|