summaryrefslogtreecommitdiffstats
path: root/examples/modal
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-20 04:51:08 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-20 04:51:08 +0200
commit42ed90bc6f92b2085d193e7f143430b8d3847c21 (patch)
tree708166baa85036ab80ee96f7379a8767b7691da6 /examples/modal
parent6c386e90a12fd26da12541da3f086dddb7211c0c (diff)
downloadiced-42ed90bc6f92b2085d193e7f143430b8d3847c21.tar.gz
iced-42ed90bc6f92b2085d193e7f143430b8d3847c21.tar.bz2
iced-42ed90bc6f92b2085d193e7f143430b8d3847c21.zip
Fix `clippy::default_trait_access`
Diffstat (limited to 'examples/modal')
-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,
},