[librsvg: 5/8] Iri does not need to implement Default
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 5/8] Iri does not need to implement Default
- Date: Wed, 7 Jul 2021 23:20:26 +0000 (UTC)
commit e1d8d5ac4f2b785360ab86d1047a0970c88008d9
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Jul 7 16:39:14 2021 -0500
Iri does not need to implement Default
All the properties with Iri data specify their own default in their newtype.
src/iri.rs | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/src/iri.rs b/src/iri.rs
index 0aecc59e..9c73acb9 100644
--- a/src/iri.rs
+++ b/src/iri.rs
@@ -18,12 +18,6 @@ pub enum Iri {
Resource(Box<NodeId>),
}
-impl Default for Iri {
- fn default() -> Iri {
- Iri::None
- }
-}
-
impl Iri {
/// Returns the contents of an `IRI::Resource`, or `None`
pub fn get(&self) -> Option<&NodeId> {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]