[librsvg: 12/18] create_node.rs: Renamed from load.rs
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 12/18] create_node.rs: Renamed from load.rs
- Date: Fri, 23 Nov 2018 22:32:30 +0000 (UTC)
commit 78f204820a4c8b266f6430664ba14df2da886c08
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Nov 23 13:51:28 2018 -0600
create_node.rs: Renamed from load.rs
That file really only exports a single function to create nodes based
on their name. I'll rather use load.rs for the loading code.
Makefile.am | 2 +-
rsvg_internals/src/{load.rs => create_node.rs} | 0
rsvg_internals/src/error.rs | 2 +-
rsvg_internals/src/lib.rs | 2 +-
rsvg_internals/src/xml.rs | 2 +-
5 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 31987c62..0b389041 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -51,6 +51,7 @@ RUST_SRC = \
rsvg_internals/src/color.rs \
rsvg_internals/src/cond.rs \
rsvg_internals/src/coord_units.rs \
+ rsvg_internals/src/create_node.rs \
rsvg_internals/src/croco.rs \
rsvg_internals/src/css.rs \
rsvg_internals/src/defs.rs \
@@ -90,7 +91,6 @@ RUST_SRC = \
rsvg_internals/src/lib.rs \
rsvg_internals/src/log.rs \
rsvg_internals/src/link.rs \
- rsvg_internals/src/load.rs \
rsvg_internals/src/marker.rs \
rsvg_internals/src/mask.rs \
rsvg_internals/src/node.rs \
diff --git a/rsvg_internals/src/load.rs b/rsvg_internals/src/create_node.rs
similarity index 100%
rename from rsvg_internals/src/load.rs
rename to rsvg_internals/src/create_node.rs
diff --git a/rsvg_internals/src/error.rs b/rsvg_internals/src/error.rs
index 93c111b5..a4be968c 100644
--- a/rsvg_internals/src/error.rs
+++ b/rsvg_internals/src/error.rs
@@ -187,7 +187,7 @@ impl ErrorDomain for RsvgError {
fn from(code: i32) -> Option<Self> {
match code {
// We don't have enough information from glib error codes
- _ => Some(RsvgError)
+ _ => Some(RsvgError),
}
}
}
diff --git a/rsvg_internals/src/lib.rs b/rsvg_internals/src/lib.rs
index bde0ed33..fd007e8e 100644
--- a/rsvg_internals/src/lib.rs
+++ b/rsvg_internals/src/lib.rs
@@ -99,6 +99,7 @@ mod bbox;
mod clip_path;
mod color;
mod cond;
+mod create_node;
mod croco;
mod css;
mod defs;
@@ -113,7 +114,6 @@ mod io;
mod iri;
mod length;
mod link;
-mod load;
mod marker;
mod mask;
mod node;
diff --git a/rsvg_internals/src/xml.rs b/rsvg_internals/src/xml.rs
index da8dea4f..8ebbb499 100644
--- a/rsvg_internals/src/xml.rs
+++ b/rsvg_internals/src/xml.rs
@@ -10,10 +10,10 @@ use std::rc::Rc;
use std::str;
use attributes::Attribute;
+use create_node::create_node_and_register_id;
use css;
use defs::{Defs, RsvgDefs};
use handle::{self, RsvgHandle};
-use load::create_node_and_register_id;
use node::{node_new, Node, NodeType};
use property_bag::PropertyBag;
use structure::NodeSvg;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]