Skip to content

contact update

contact update #39

GitHub Actions / clippy succeeded Feb 7, 2024 in 1s

clippy

4 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 4
Note 0
Help 0

Versions

  • rustc 1.75.0 (82e1608df 2023-12-21)
  • cargo 1.75.0 (1d8b05cdd 2023-11-20)
  • clippy 0.1.75 (82e1608 2023-12-21)

Annotations

Check warning on line 147 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

warning: deref which would be done by auto-deref
   --> src/main.rs:147:27
    |
147 |                 return if (*cli).contrast {
    |                           ^^^^^^ help: try: `cli`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check warning on line 153 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unneeded `return` statement

warning: unneeded `return` statement
   --> src/main.rs:153:17
    |
153 |                 return format!("{}", Style::new().dimmed().paint(curr_char));
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
    |
153 -                 return format!("{}", Style::new().dimmed().paint(curr_char));
153 +                 format!("{}", Style::new().dimmed().paint(curr_char))
    |

Check warning on line 151 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unneeded `return` statement

warning: unneeded `return` statement
   --> src/main.rs:147:17
    |
147 | /                 return if (*cli).contrast {
148 | |                     format!("{}", Style::new().bold().paint(curr_char))
149 | |                 } else {
150 | |                     String::from(curr_char)
151 | |                 };
    | |_________________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
    = note: `#[warn(clippy::needless_return)]` on by default
help: remove `return`
    |
147 ~                 if (*cli).contrast {
148 +                     format!("{}", Style::new().bold().paint(curr_char))
149 +                 } else {
150 +                     String::from(curr_char)
151 ~                 }
    |

Check warning on line 133 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

warning: deref which would be done by auto-deref
   --> src/main.rs:133:17
    |
133 |         * match (*cli).fixation {
    |                 ^^^^^^ help: try: `cli`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
    = note: `#[warn(clippy::explicit_auto_deref)]` on by default