Merge pull request #739 from hecrj/fix/beta-warnings

Fix warnings in the `beta` toolchain
This commit is contained in:
Héctor Ramón 2021-02-16 00:41:06 +01:00 committed by GitHub
commit 842d54732b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 10 additions and 2 deletions

View File

@ -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 {

View File

@ -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>,

View File

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

View File

@ -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,

View File

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

View File

@ -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>,
}

View File

@ -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>,
}