Skip to content

Spurious unecessary trailing semicolon warning #49

@casey

Description

@casey

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
  |

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions