Skip to content

Commit

Permalink
refactor: Remove inline(never) that don't change anything
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Aug 24, 2022
1 parent b0cac08 commit 74f29fc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/builder/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3291,7 +3291,6 @@ impl Command {
}

/// Should we color the output?
#[inline(never)]
pub fn get_color(&self) -> ColorChoice {
debug!("Command::color: Color setting...");

Expand Down
1 change: 0 additions & 1 deletion src/output/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ pub(crate) struct Colorizer {
}

impl Colorizer {
#[inline(never)]
pub(crate) fn new(stream: Stream, color_when: ColorChoice) -> Self {
Colorizer {
stream,
Expand Down
3 changes: 0 additions & 3 deletions src/output/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,14 @@ impl<'cmd, 'writer> Help<'cmd, 'writer> {

// Methods to write Arg help.
impl<'cmd, 'writer> Help<'cmd, 'writer> {
#[inline(never)]
fn good<T: Into<String>>(&mut self, msg: T) {
self.writer.good(msg);
}

#[inline(never)]
fn warning<T: Into<String>>(&mut self, msg: T) {
self.writer.warning(msg);
}

#[inline(never)]
fn none<T: Into<String>>(&mut self, msg: T) {
self.writer.none(msg);
}
Expand Down

0 comments on commit 74f29fc

Please sign in to comment.