Apply clippy lints

This commit is contained in:
QuantumEntangledAndy committed 2022-06-21 10:29:06 +07:00
1 parent f375d1b14d
commit 11a4ec921d
9 files changed
+13 -15

No files matched your search

+1 -1
View File
@@ -347,7 +347,7 @@ mod maybe_app_src {
/// owning the AppSrc directly. This function handles either case and returns the AppSrc,
/// or None if the caller has not yet sent one.
fn try_get_src(&mut self) -> Option<&AppSrc> {
while let Some(src) = self.rx.try_recv().ok() {
while let Ok(src) = self.rx.try_recv() {
self.app_src = Some(src);
}
self.app_src.as_ref()