From cc7cb62b6129bf45c6fd822ed8ae7917607fa1fe Mon Sep 17 00:00:00 2001 From: Iain Laird Date: Fri, 17 Nov 2023 14:40:56 +0000 Subject: [PATCH] Fix lints --- druid/src/widget/image.rs | 7 +++++-- druid/src/widget/svg.rs | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/druid/src/widget/image.rs b/druid/src/widget/image.rs index 04e3e4135..e4d30715e 100644 --- a/druid/src/widget/image.rs +++ b/druid/src/widget/image.rs @@ -318,8 +318,11 @@ mod tests { // the padding color and the middle rows will not have any padding. // Check that the middle row 400 pix wide is 200 black then 200 white. - let expecting: Vec = - [[0, 0, 0, 255].repeat(200), [255, 255, 255, 255].repeat(200)].concat(); + let expecting: Vec = [ + [0, 0, 0, 255].repeat(200), + [255, 255, 255, 255].repeat(200), + ] + .concat(); assert_eq!(raw_pixels[400 * 300 * 4..400 * 301 * 4], expecting[..]); // Check that all of the last 100 rows are all the background color. diff --git a/druid/src/widget/svg.rs b/druid/src/widget/svg.rs index 1975dfc88..bb5aab9c7 100644 --- a/druid/src/widget/svg.rs +++ b/druid/src/widget/svg.rs @@ -132,12 +132,12 @@ impl SvgData { pub fn empty() -> Self { use std::str::FromStr; - let empty_svg = r###" + let empty_svg = r#" - "###; + "#; SvgData::from_str(empty_svg).unwrap() }