Allow dead code explicitly in `iced_web`

This commit is contained in:
Héctor Ramón Jiménez 2021-02-15 23:59:31 +01:00
parent 4de164dcc7
commit 9ba9558429
6 changed files with 8 additions and 0 deletions

View File

@ -25,8 +25,10 @@ pub struct Button<'a, Message> {
content: Element<'a, Message>, content: Element<'a, Message>,
on_press: Option<Message>, on_press: Option<Message>,
width: Length, width: Length,
#[allow(dead_code)]
height: Length, height: Length,
min_width: u32, min_width: u32,
#[allow(dead_code)]
min_height: u32, min_height: u32,
padding: u16, padding: u16,
style: Box<dyn StyleSheet>, style: Box<dyn StyleSheet>,

View File

@ -30,6 +30,7 @@ pub struct Checkbox<Message> {
label: String, label: String,
id: Option<String>, id: Option<String>,
width: Length, width: Length,
#[allow(dead_code)]
style: Box<dyn StyleSheet>, style: Box<dyn StyleSheet>,
} }

View File

@ -12,6 +12,7 @@ pub struct Container<'a, Message> {
width: Length, width: Length,
height: Length, height: Length,
max_width: u32, max_width: u32,
#[allow(dead_code)]
max_height: u32, max_height: u32,
horizontal_alignment: Align, horizontal_alignment: Align,
vertical_alignment: Align, vertical_alignment: Align,

View File

@ -37,6 +37,7 @@ pub struct Radio<Message> {
label: String, label: String,
id: Option<String>, id: Option<String>,
name: Option<String>, name: Option<String>,
#[allow(dead_code)]
style: Box<dyn StyleSheet>, style: Box<dyn StyleSheet>,
} }

View File

@ -11,6 +11,7 @@ pub struct Scrollable<'a, Message> {
height: Length, height: Length,
max_height: u32, max_height: u32,
content: Column<'a, Message>, content: Column<'a, Message>,
#[allow(dead_code)]
style: Box<dyn StyleSheet>, style: Box<dyn StyleSheet>,
} }

View File

@ -38,7 +38,9 @@ pub struct Slider<'a, T, Message> {
step: T, step: T,
value: T, value: T,
on_change: Rc<Box<dyn Fn(T) -> Message>>, on_change: Rc<Box<dyn Fn(T) -> Message>>,
#[allow(dead_code)]
width: Length, width: Length,
#[allow(dead_code)]
style: Box<dyn StyleSheet>, style: Box<dyn StyleSheet>,
} }