mirror of
https://github.com/rustdesk/qemu-display.git
synced 2026-10-26 22:20:02 +00:00
Clippy fixes
This commit is contained in:
1 parent
124d893395
commit
b787a2c0bc
3 files changed
+5
-7
No files matched your search
@@ -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" }
|
||||
|
||||
Reference in new issue
Block a user