[librsvg: 28/32] RenderingError should not be PartialEq




commit 2a1954dfe8e868aa744a1f2e5747032b37077c2d
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Dec 3 19:24:07 2020 -0600

    RenderingError should not be PartialEq
    
    Now that its variants contain strings, they are not meant to be compared.

 src/error.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/error.rs b/src/error.rs
index 65902b82..566c44e5 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -121,7 +121,7 @@ impl fmt::Display for DefsLookupErrorKind {
 
 /// Errors that can happen while rendering or measuring an SVG document.
 #[non_exhaustive]
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Debug, Clone)]
 pub enum RenderingError {
     /// An error from the rendering backend.
     Rendering(String),


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