[chore]: Fixup clippy lints
Some checks failed
/ clippy (push) Failing after 5m26s
/ test (push) Failing after 6m7s

This commit is contained in:
Chris Cochrun 2026-04-24 16:43:34 -05:00
parent bc302f9731
commit 20c91ee868
5 changed files with 1 additions and 6 deletions

View file

@ -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"

View file

@ -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();

View file

@ -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>,

View file

@ -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(

View file

@ -35,7 +35,6 @@ pub enum Action {
None,
}
#[allow(clippy::cast_possible_truncation)]
#[allow(clippy::cast_precision_loss)]
impl VerseEditor {
#[must_use]