[librsvg: 10/13] clippy: simplify a boolean expression




commit 14b3b81b187d53074249deee5096a63663167f34
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Aug 4 20:10:53 2022 -0500

    clippy: simplify a boolean expression
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/724>

 src/c_api/handle.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/c_api/handle.rs b/src/c_api/handle.rs
index 549bcede1..9f6a19cca 100644
--- a/src/c_api/handle.rs
+++ b/src/c_api/handle.rs
@@ -1223,7 +1223,7 @@ pub unsafe extern "C" fn rsvg_handle_write(
 
         is_rsvg_handle(handle),
         error.is_null() || (*error).is_null(),
-        (!buf.is_null() && count != 0) || (count == 0),
+        !buf.is_null() || count == 0,
     }
 
     let rhandle = get_rust_handle(handle);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]