Merge pull request #739 from hecrj/fix/beta-warnings
Fix warnings in the `beta` toolchain
This commit is contained in:
commit
842d54732b
|
@ -17,7 +17,7 @@ pub unsafe fn create(
|
|||
gl.compile_shader(shader);
|
||||
|
||||
if !gl.get_shader_compile_status(shader) {
|
||||
panic!(gl.get_shader_info_log(shader));
|
||||
panic!("{}", gl.get_shader_info_log(shader));
|
||||
}
|
||||
|
||||
gl.attach_shader(program, shader);
|
||||
|
@ -27,7 +27,7 @@ pub unsafe fn create(
|
|||
|
||||
gl.link_program(program);
|
||||
if !gl.get_program_link_status(program) {
|
||||
panic!(gl.get_program_info_log(program));
|
||||
panic!("{}", gl.get_program_info_log(program));
|
||||
}
|
||||
|
||||
for shader in shaders {
|
||||
|
|
|
@ -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