mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-20 03:18:06 +08:00
Clear the remaining clippy warnings on the diff surface
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user