From a68f458612c08b8a9a8b3d5726e42245db438380 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 7 Mar 2025 21:05:59 -0700 Subject: [PATCH] [fontations] Make 'ninja -Cbuild clippy' apply fixes --- src/fontations/lib.rs | 2 +- src/fontations/meson.build | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fontations/lib.rs b/src/fontations/lib.rs index 0d0fd6770..5170f5f2f 100644 --- a/src/fontations/lib.rs +++ b/src/fontations/lib.rs @@ -711,7 +711,7 @@ extern "C" fn _hb_fontations_paint_glyph( start_index } else { // https://github.com/harfbuzz/harfbuzz/issues/5116 - cpal.color_record_indices().get(0 as usize) + cpal.color_record_indices().get(0_usize) }; if let (Some(Ok(color_records)), Some(start_index)) = (color_records, start_index) { diff --git a/src/fontations/meson.build b/src/fontations/meson.build index 2b75e667f..998326aa6 100644 --- a/src/fontations/meson.build +++ b/src/fontations/meson.build @@ -63,6 +63,8 @@ clippy = custom_target( command: [ cargo, 'clippy', ] + cargo_args + [ + '--allow-dirty', '--fix', + '--lib', '-p', 'harfbuzz_fontations', '--target-dir', meson.current_build_dir(), '--manifest-path', meson.current_source_dir() / 'Cargo.toml' ],