mirror of
https://gitlab.com/marcandre.lureau/qemu-display.git
synced 2024-12-22 05:35:20 +00:00
Clippy fixes
This commit is contained in:
parent
124d893395
commit
b787a2c0bc
@ -98,7 +98,7 @@ mod imp {
|
||||
widget.make_current();
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
@ -17,12 +17,10 @@ fn pcminfo_as_caps(info: &PCMInfo) -> String {
|
||||
"{}{}{}",
|
||||
if info.is_float {
|
||||
"F"
|
||||
} else if info.is_signed {
|
||||
"S"
|
||||
} else {
|
||||
if info.is_signed {
|
||||
"S"
|
||||
} else {
|
||||
"U"
|
||||
}
|
||||
"U"
|
||||
},
|
||||
info.bits,
|
||||
if info.be { "BE" } else { "LE" }
|
||||
|
@ -15,7 +15,7 @@ fn main() {
|
||||
|
||||
fn try_main() -> Result<(), DynError> {
|
||||
let task = env::args().nth(1);
|
||||
match task.as_ref().map(|it| it.as_str()) {
|
||||
match task.as_deref() {
|
||||
Some("codegen") => codegen()?,
|
||||
_ => print_help(),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user