Skip to content

Commit

Permalink
fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed May 15, 2024
1 parent 24c080d commit 5f3299a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cli/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ macro_rules! run_x {
}

impl Cmd {
/// Run the CLIs decode command.
///
/// ## Errors
///
/// If the command is configured with state that is invalid.
pub fn run(&self, channel: &Channel) -> Result<(), Error> {
match channel {
Channel::Curr => self.run_curr()?,
Expand Down
5 changes: 5 additions & 0 deletions src/cli/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ macro_rules! run_x {
}

impl Cmd {
/// Run the CLIs encode command.
///
/// ## Errors
///
/// If the command is configured with state that is invalid.
pub fn run(&self, channel: &Channel) -> Result<(), Error> {
match channel {
Channel::Curr => self.run_curr()?,
Expand Down
5 changes: 5 additions & 0 deletions src/cli/guess.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ macro_rules! run_x {
}

impl Cmd {
/// Run the CLIs guess command.
///
/// ## Errors
///
/// If the command is configured with state that is invalid.
pub fn run(&self, channel: &Channel) -> Result<(), Error> {
match channel {
Channel::Curr => self.run_curr()?,
Expand Down
5 changes: 5 additions & 0 deletions src/cli/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ enum Sub {
}

impl Cmd {
/// Run the CLIs types command.
///
/// ## Panics
///
/// If the lists sub-command panics.
pub fn run(&self, channel: &Channel) {
match &self.sub {
Sub::List(c) => c.run(channel),
Expand Down
5 changes: 5 additions & 0 deletions src/cli/types/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ impl Default for OutputFormat {
}

impl Cmd {
/// Run the CLIs types list command.
///
/// ## Panics
///
/// If the list cannot be rendered as JSON.
pub fn run(&self, channel: &Channel) {
let types = Self::types(channel);
match self.output {
Expand Down

0 comments on commit 5f3299a

Please sign in to comment.