Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
atlanticaccent committed Feb 26, 2024
1 parent e8d014f commit cc7cb62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions druid/src/widget/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8> =
[[0, 0, 0, 255].repeat(200), [255, 255, 255, 255].repeat(200)].concat();
let expecting: Vec<u8> = [
[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.
Expand Down
4 changes: 2 additions & 2 deletions druid/src/widget/svg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ impl SvgData {
pub fn empty() -> Self {
use std::str::FromStr;

let empty_svg = r###"
let empty_svg = r#"
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
<g fill="none">
</g>
</svg>
"###;
"#;

SvgData::from_str(empty_svg).unwrap()
}
Expand Down

0 comments on commit cc7cb62

Please sign in to comment.