Skip to content

Commit

Permalink
Suppress some clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
osa1 committed Jan 17, 2022
1 parent f7dc976 commit e8ab478
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions crates/libtiny_tui/src/tui.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#![allow(clippy::cognitive_complexity)]
#![allow(clippy::new_without_default)]
#![allow(clippy::too_many_arguments)]
#![allow(
clippy::cognitive_complexity,
clippy::new_without_default,
clippy::too_many_arguments
)]
// https://github.com/rust-lang/rust-clippy/issues/7526
#![allow(clippy::needless_collect)]

use std::borrow::Borrow;
use std::cmp::Ordering;
Expand Down
2 changes: 2 additions & 0 deletions crates/libtiny_wire/src/formatting.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//! Implements parsing IRC formatting characters. Reference:
//! <https://modern.ircdocs.horse/formatting.html>

#![allow(clippy::single_match)]

const CHAR_BOLD: char = '\x02';
const CHAR_ITALIC: char = '\x1D';
const CHAR_UNDERLINE: char = '\x1F';
Expand Down
2 changes: 1 addition & 1 deletion crates/term_input/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![allow(clippy::new_without_default)]
#![allow(clippy::new_without_default, clippy::collapsible_match)]

//! Interprets the terminal events we care about (keyboard input).
//!
Expand Down

0 comments on commit e8ab478

Please sign in to comment.