[pbs-devel] [PATCH proxmox 10/15] clippy fix: binary comparison to literal `Option::None`

Lukas Wagner l.wagner at proxmox.com
Tue Aug 8 10:01:48 CEST 2023


Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 proxmox-apt/src/repositories/file/list_parser.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxmox-apt/src/repositories/file/list_parser.rs b/proxmox-apt/src/repositories/file/list_parser.rs
index deba41a..0edeea7 100644
--- a/proxmox-apt/src/repositories/file/list_parser.rs
+++ b/proxmox-apt/src/repositories/file/list_parser.rs
@@ -54,7 +54,7 @@ impl Iterator for SplitQuoteWord {
                 continue;
             }
 
-            if start == None {
+            if start.is_none() {
                 start = Some(n);
             }
 
-- 
2.39.2






More information about the pbs-devel mailing list