[librsvg: 1/6] clippy: allow not having a Default for Loader




commit 80ef7644f03e05e1caf692cbcc8e84a5258b0ebc
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Aug 24 08:50:16 2022 -0500

    clippy: allow not having a Default for Loader
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/733>

 src/api.rs | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/api.rs b/src/api.rs
index 38bb0bc4e..ee8953102 100644
--- a/src/api.rs
+++ b/src/api.rs
@@ -61,6 +61,7 @@ impl Loader {
     ///     .read_path("example.svg")
     ///     .unwrap();
     /// ```
+    #[allow(clippy::new_without_default)]
     pub fn new() -> Self {
         Self::new_with_session(Session::default())
     }


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