Updating small clippy errors and adding debug derive to style

This commit is contained in:
Jack Mac 2021-09-02 17:44:00 -04:00
parent 6488dfe358
commit 257345a53f
4 changed files with 4 additions and 4 deletions

View File

@ -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 => (),
}
}

View File

@ -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());

View File

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

View File

@ -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]);