[chore]: Fixup clippy lints
This commit is contained in:
parent
bc302f9731
commit
20c91ee868
5 changed files with 1 additions and 6 deletions
|
|
@ -86,6 +86,7 @@ mismatched_lifetime_syntaxes = "allow"
|
|||
unsafe_code = "deny"
|
||||
|
||||
[lints.clippy]
|
||||
cast_possible_truncation = { level = "allow", priority = 1 }
|
||||
pedantic = "warn"
|
||||
nursery = "warn"
|
||||
unwrap_used = "warn"
|
||||
|
|
|
|||
|
|
@ -148,7 +148,6 @@ impl<'a> Library {
|
|||
}
|
||||
|
||||
#[allow(clippy::cast_possible_wrap)]
|
||||
#[allow(clippy::cast_possible_truncation)]
|
||||
#[allow(clippy::too_many_lines)]
|
||||
#[allow(clippy::match_same_arms)]
|
||||
pub fn update(&mut self, message: Message) -> Action {
|
||||
|
|
@ -1379,7 +1378,6 @@ pub async fn add_db() -> Result<SqlitePool> {
|
|||
|
||||
#[allow(clippy::cast_sign_loss)]
|
||||
#[allow(clippy::cast_precision_loss)]
|
||||
#[allow(clippy::cast_possible_truncation)]
|
||||
pub fn elide_text(text: impl AsRef<str>, width: f32) -> String {
|
||||
const CHAR_SIZE: f32 = 8.0;
|
||||
let text: String = text.as_ref().to_owned();
|
||||
|
|
|
|||
|
|
@ -208,7 +208,6 @@ impl Display for Face {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::cast_possible_truncation)]
|
||||
impl SongEditor {
|
||||
pub fn new(
|
||||
font_db: Arc<fontdb::Database>,
|
||||
|
|
@ -2214,7 +2213,6 @@ impl SongEditor {
|
|||
|
||||
#[allow(clippy::unreadable_literal)]
|
||||
#[allow(clippy::items_after_statements)]
|
||||
#[allow(clippy::cast_possible_truncation)]
|
||||
fn verse_chip(
|
||||
verse: VerseName,
|
||||
index: Option<usize>,
|
||||
|
|
|
|||
|
|
@ -295,7 +295,6 @@ impl TextSvg {
|
|||
}
|
||||
|
||||
#[must_use]
|
||||
#[allow(clippy::cast_possible_truncation)]
|
||||
#[allow(clippy::cast_precision_loss)]
|
||||
#[allow(clippy::too_many_lines)]
|
||||
pub fn build(
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@ pub enum Action {
|
|||
None,
|
||||
}
|
||||
|
||||
#[allow(clippy::cast_possible_truncation)]
|
||||
#[allow(clippy::cast_precision_loss)]
|
||||
impl VerseEditor {
|
||||
#[must_use]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue