Allow dead code explicitly in `iced_web`
This commit is contained in:
parent
4de164dcc7
commit
9ba9558429
|
@ -25,8 +25,10 @@ pub struct Button<'a, Message> {
|
|||
content: Element<'a, Message>,
|
||||
on_press: Option<Message>,
|
||||
width: Length,
|
||||
#[allow(dead_code)]
|
||||
height: Length,
|
||||
min_width: u32,
|
||||
#[allow(dead_code)]
|
||||
min_height: u32,
|
||||
padding: u16,
|
||||
style: Box<dyn StyleSheet>,
|
||||
|
|
|
@ -30,6 +30,7 @@ pub struct Checkbox<Message> {
|
|||
label: String,
|
||||
id: Option<String>,
|
||||
width: Length,
|
||||
#[allow(dead_code)]
|
||||
style: Box<dyn StyleSheet>,
|
||||
}
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ pub struct Container<'a, Message> {
|
|||
width: Length,
|
||||
height: Length,
|
||||
max_width: u32,
|
||||
#[allow(dead_code)]
|
||||
max_height: u32,
|
||||
horizontal_alignment: Align,
|
||||
vertical_alignment: Align,
|
||||
|
|
|
@ -37,6 +37,7 @@ pub struct Radio<Message> {
|
|||
label: String,
|
||||
id: Option<String>,
|
||||
name: Option<String>,
|
||||
#[allow(dead_code)]
|
||||
style: Box<dyn StyleSheet>,
|
||||
}
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ pub struct Scrollable<'a, Message> {
|
|||
height: Length,
|
||||
max_height: u32,
|
||||
content: Column<'a, Message>,
|
||||
#[allow(dead_code)]
|
||||
style: Box<dyn StyleSheet>,
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,9 @@ pub struct Slider<'a, T, Message> {
|
|||
step: T,
|
||||
value: T,
|
||||
on_change: Rc<Box<dyn Fn(T) -> Message>>,
|
||||
#[allow(dead_code)]
|
||||
width: Length,
|
||||
#[allow(dead_code)]
|
||||
style: Box<dyn StyleSheet>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue