Skip to content

Commit

Permalink
Remove useless macro #[allow(dead_code)] (nushell#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaudiger authored Mar 24, 2023
1 parent 47496f8 commit ff8bd8f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/gradient.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ impl Gradient {
Self::new(self.end, self.start)
}

#[allow(dead_code)]
pub fn build(&self, text: &str, target: TargetGround) -> String {
let delta = 1.0 / text.len() as f32;
let mut result = text.char_indices().fold(String::new(), |mut acc, (i, c)| {
Expand All @@ -62,7 +61,6 @@ impl Gradient {
}
}

#[allow(dead_code)]
pub fn build_all_gradient_text(text: &str, foreground: Gradient, background: Gradient) -> String {
let delta = 1.0 / text.len() as f32;
let mut result = text.char_indices().fold(String::new(), |mut acc, (i, c)| {
Expand Down

0 comments on commit ff8bd8f

Please sign in to comment.