I'm getting a warning to remove a trailing semicolon in a trait definition, but removing it causes an error:
pub(crate) trait CommandExt {
#[throws]
fn out(&mut self) -> String;
#[throws]
fn status_into_result(&mut self); // <-- this semicolon triggers the warning
}
warning: unnecessary trailing semicolon
--> bin/gen/src/command_ext.rs:8:35
|
8 | fn status_into_result(&mut self);
| ^ help: remove this semicolon
|