[fontations] Make 'ninja -Cbuild clippy' apply fixes

This commit is contained in:
Behdad Esfahbod 2025-03-07 21:05:59 -07:00
parent f7cb3a3c8e
commit a68f458612
2 changed files with 3 additions and 1 deletions

View file

@ -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) {

View file

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