mirror of
https://gitlab.com/marcandre.lureau/qemu-display.git
synced 2025-01-03 11:15:19 +00:00
Clippy fixes
This commit is contained in:
parent
124d893395
commit
b787a2c0bc
@ -98,7 +98,7 @@ mod imp {
|
|||||||
widget.make_current();
|
widget.make_current();
|
||||||
|
|
||||||
if let Err(e) = unsafe { self.realize_gl() } {
|
if let Err(e) = unsafe { self.realize_gl() } {
|
||||||
let e = glib::Error::new(AppError::GL, &e.to_string());
|
let e = glib::Error::new(AppError::GL, &e);
|
||||||
widget.set_error(Some(&e));
|
widget.set_error(Some(&e));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,12 +17,10 @@ fn pcminfo_as_caps(info: &PCMInfo) -> String {
|
|||||||
"{}{}{}",
|
"{}{}{}",
|
||||||
if info.is_float {
|
if info.is_float {
|
||||||
"F"
|
"F"
|
||||||
} else {
|
} else if info.is_signed {
|
||||||
if info.is_signed {
|
|
||||||
"S"
|
"S"
|
||||||
} else {
|
} else {
|
||||||
"U"
|
"U"
|
||||||
}
|
|
||||||
},
|
},
|
||||||
info.bits,
|
info.bits,
|
||||||
if info.be { "BE" } else { "LE" }
|
if info.be { "BE" } else { "LE" }
|
||||||
|
@ -15,7 +15,7 @@ fn main() {
|
|||||||
|
|
||||||
fn try_main() -> Result<(), DynError> {
|
fn try_main() -> Result<(), DynError> {
|
||||||
let task = env::args().nth(1);
|
let task = env::args().nth(1);
|
||||||
match task.as_ref().map(|it| it.as_str()) {
|
match task.as_deref() {
|
||||||
Some("codegen") => codegen()?,
|
Some("codegen") => codegen()?,
|
||||||
_ => print_help(),
|
_ => print_help(),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user