You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run it, it works, but I get this when compiling it:
dap@zathras dropshot-operation-id $ cargo version
cargo 1.81.0 (2dbb1af80 2024-08-20)
dap@zathras dropshot-operation-id $ cargo check --example=api-trait-broken
Checking dropshot v0.12.1-dev (/Users/dap/oxide/dropshot-operation-id/dropshot)
warning: trait `MyApi` is never used
--> dropshot/examples/api-trait-broken.rs:2:7
|
2 | trait MyApi {
| ^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: `dropshot` (example "api-trait-broken") generated 1 warning
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.56s
I get that technically the trait itself is unused but I think from a Dropshot user's perspective this warning is spurious and we should silence it if we can.
The text was updated successfully, but these errors were encountered:
With this code (a version of the code from #1128 where I've moved the trait definition to the top level):
When I run it, it works, but I get this when compiling it:
I get that technically the trait itself is unused but I think from a Dropshot user's perspective this warning is spurious and we should silence it if we can.
The text was updated successfully, but these errors were encountered: