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>,
|
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>,
|
||||||
|
|
|
@ -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>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue