mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-10 21:18:36 +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);
|
||||
out.slot += 1;
|
||||
}
|
||||
Some(Err(fm)) => return Err(InitError::PixelExport(&"!known", Some(fm))),
|
||||
Some(Err(fm)) => return Err(InitError::PixelExport("!known", Some(fm))),
|
||||
None => (),
|
||||
}
|
||||
}
|
||||
|
||||
@ -423,7 +423,7 @@ fn test_ini_load_save() {
|
||||
Pos=60,60
|
||||
Size=400,400
|
||||
Collapsed=0";
|
||||
ctx.load_ini_settings(&data);
|
||||
ctx.load_ini_settings(data);
|
||||
let mut buf = String::new();
|
||||
ctx.save_ini_settings(&mut buf);
|
||||
assert_eq!(data.trim(), buf.trim());
|
||||
|
||||
@ -6,7 +6,7 @@ use crate::Direction;
|
||||
|
||||
/// User interface style/colors
|
||||
#[repr(C)]
|
||||
#[derive(Copy, Clone)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct Style {
|
||||
/// Global alpha applies to everything
|
||||
pub alpha: f32,
|
||||
|
||||
@ -122,7 +122,7 @@ fn generate_binding_file(
|
||||
cmd.args(&["--ctypes-prefix", "cty"]);
|
||||
|
||||
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 {
|
||||
cmd.args(&["--whitelist-type", t]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user