diff --git a/font-codegen/src/parsing.rs b/font-codegen/src/parsing.rs index ea543f191..5c21b6795 100644 --- a/font-codegen/src/parsing.rs +++ b/font-codegen/src/parsing.rs @@ -257,6 +257,9 @@ pub(crate) struct SinceVersion { /// ``` #[derive(Clone, Debug)] pub(crate) enum Count { + // the field isn't used, but it's nice to hold onto if we want to print errors + // in the future + #[allow(dead_code)] All(syn::token::DotDot), SingleArg(CountArg), Complicated { diff --git a/skrifa/src/color/traversal_tests/mod.rs b/skrifa/src/color/traversal_tests/mod.rs index b68702e5c..87b2e84be 100644 --- a/skrifa/src/color/traversal_tests/mod.rs +++ b/skrifa/src/color/traversal_tests/mod.rs @@ -296,6 +296,7 @@ fn colrv1_traversal_test( let mut file = OpenOptions::new() .write(true) .create(true) + .truncate(true) .open(dumpfile_path) .unwrap();