mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 13:38:35 +00:00
Updating small clippy errors and adding debug derive to style
This commit is contained in:
parent
6488dfe358
commit
257345a53f
@ -534,7 +534,7 @@ mod pipeline {
|
|||||||
desc.color_targets[out.slot as usize] = Some(d);
|
desc.color_targets[out.slot as usize] = Some(d);
|
||||||
out.slot += 1;
|
out.slot += 1;
|
||||||
}
|
}
|
||||||
Some(Err(fm)) => return Err(InitError::PixelExport(&"!known", Some(fm))),
|
Some(Err(fm)) => return Err(InitError::PixelExport("!known", Some(fm))),
|
||||||
None => (),
|
None => (),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -423,7 +423,7 @@ fn test_ini_load_save() {
|
|||||||
Pos=60,60
|
Pos=60,60
|
||||||
Size=400,400
|
Size=400,400
|
||||||
Collapsed=0";
|
Collapsed=0";
|
||||||
ctx.load_ini_settings(&data);
|
ctx.load_ini_settings(data);
|
||||||
let mut buf = String::new();
|
let mut buf = String::new();
|
||||||
ctx.save_ini_settings(&mut buf);
|
ctx.save_ini_settings(&mut buf);
|
||||||
assert_eq!(data.trim(), buf.trim());
|
assert_eq!(data.trim(), buf.trim());
|
||||||
|
|||||||
@ -6,7 +6,7 @@ use crate::Direction;
|
|||||||
|
|
||||||
/// User interface style/colors
|
/// User interface style/colors
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Debug, Copy, Clone)]
|
||||||
pub struct Style {
|
pub struct Style {
|
||||||
/// Global alpha applies to everything
|
/// Global alpha applies to everything
|
||||||
pub alpha: f32,
|
pub alpha: f32,
|
||||||
|
|||||||
@ -122,7 +122,7 @@ fn generate_binding_file(
|
|||||||
cmd.args(&["--ctypes-prefix", "cty"]);
|
cmd.args(&["--ctypes-prefix", "cty"]);
|
||||||
|
|
||||||
if let Some(name) = wasm_import_mod {
|
if let Some(name) = wasm_import_mod {
|
||||||
cmd.args(&["--wasm-import-module-name", &name]);
|
cmd.args(&["--wasm-import-module-name", name]);
|
||||||
}
|
}
|
||||||
for t in types {
|
for t in types {
|
||||||
cmd.args(&["--whitelist-type", t]);
|
cmd.args(&["--whitelist-type", t]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user