Clear the remaining clippy warnings on the diff surface

This commit is contained in:
Dennis Kobert
2026-09-06 16:25:17 +00:00
parent a911bcc165
commit 9f0e0ebc96
21 changed files with 46 additions and 50 deletions

View File

@@ -433,7 +433,7 @@ mod tests {
#[test]
fn qr_code_test() {
let qr = qr_code(&(), (), "https://graphite.art".to_string(), false, 1., QRCodeErrorCorrectionLevel::Low, true);
assert!(qr.point_domain.ids().len() > 0);
assert!(qr.segment_domain.ids().len() > 0);
assert!(!qr.point_domain.ids().is_empty());
assert!(!qr.segment_domain.ids().is_empty());
}
}

View File

@@ -1577,7 +1577,7 @@ fn emit_legacy_lane<'e>(
/// one group lane, lane 0's layer path stamped on the wrapper.
fn wrap_vector_level(content: core_types::node::List<'_, Vector>) -> List<Graphic<'_>> {
let item = content.as_group_item();
let layer_path: Vec<NodeId> = match content.len() > 0 {
let layer_path: Vec<NodeId> = match !content.is_empty() {
true => content.lane(0).attr::<EditorLayerPath>().to_vec(),
false => Vec::new(),
};