summaryrefslogtreecommitdiffstats
path: root/examples/modal/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2023-09-20 15:52:41 +0200
committerLibravatar GitHub <noreply@github.com>2023-09-20 15:52:41 +0200
commit2f7ff1471d1f6119c769c77fa138a63e95b5d881 (patch)
tree83f20609fa20d534ef8bd32b3851cae03cbadbb2 /examples/modal/src/main.rs
parente8b01eb5435500c4b4d3135dde3d9e5910aca89e (diff)
parent33d780f691829ecd32f3a218008fcb40e005deb4 (diff)
downloadiced-2f7ff1471d1f6119c769c77fa138a63e95b5d881.tar.gz
iced-2f7ff1471d1f6119c769c77fa138a63e95b5d881.tar.bz2
iced-2f7ff1471d1f6119c769c77fa138a63e95b5d881.zip
Merge pull request #2096 from iced-rs/fix/some-more-lints
Fix some `clippy::pedantic` lints
Diffstat (limited to 'examples/modal/src/main.rs')
-rw-r--r--examples/modal/src/main.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/modal/src/main.rs b/examples/modal/src/main.rs
index c050d3cc..b0e2c81b 100644
--- a/examples/modal/src/main.rs
+++ b/examples/modal/src/main.rs
@@ -228,7 +228,9 @@ mod modal {
use iced::alignment::Alignment;
use iced::event;
use iced::mouse;
- use iced::{Color, Element, Event, Length, Point, Rectangle, Size};
+ use iced::{
+ BorderRadius, Color, Element, Event, Length, Point, Rectangle, Size,
+ };
/// A widget that centers a modal element over some base element
pub struct Modal<'a, Message, Renderer> {
@@ -474,7 +476,7 @@ mod modal {
renderer.fill_quad(
renderer::Quad {
bounds: layout.bounds(),
- border_radius: Default::default(),
+ border_radius: BorderRadius::default(),
border_width: 0.0,
border_color: Color::TRANSPARENT,
},