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() }