[librsvg] pt.rs: Remove auxiliary file for parse_transform.lalrpop



commit 4e7f5e1e8cc497e9293b6ff48181b276ee94ca89
Author: Federico Mena Quintero <federico gnome org>
Date:   Fri Jun 2 11:01:50 2017 -0500

    pt.rs: Remove auxiliary file for parse_transform.lalrpop
    
    I didn't know that extern creates are conventionally defined in lib.rs,
    and used as "use ::some_extern_create" from actual modules.
    
    Lalrpop doesn't support "extern crate blah"; it assumes the conventional
    usage.

 Makefile.am                      |    1 -
 rust/src/lib.rs                  |    1 -
 rust/src/parse_transform.lalrpop |    4 ++--
 rust/src/pt.rs                   |    1 -
 4 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 02620b4..cc2848b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -90,7 +90,6 @@ RUST_SOURCES =                                        \
        rust/src/path_parser.rs                 \
        rust/src/pattern.rs                     \
        rust/src/property_bag.rs                \
-       rust/src/pt.rs                          \
        rust/src/shapes.rs                      \
        rust/src/state.rs                       \
        rust/src/stop.rs                        \
diff --git a/rust/src/lib.rs b/rust/src/lib.rs
index a2adbb8..01e70b1 100644
--- a/rust/src/lib.rs
+++ b/rust/src/lib.rs
@@ -137,7 +137,6 @@ mod marker;
 mod node;
 mod opacity;
 mod paint_server;
-mod pt;
 mod parsers;
 mod parse_transform;
 mod path_builder;
diff --git a/rust/src/parse_transform.lalrpop b/rust/src/parse_transform.lalrpop
index 424c213..0747218 100644
--- a/rust/src/parse_transform.lalrpop
+++ b/rust/src/parse_transform.lalrpop
@@ -7,8 +7,8 @@
 use std::f64::consts::*;
 use std::str::FromStr;
 
-use pt::cairo;
-use pt::cairo::MatrixTrait;
+use ::cairo;
+use ::cairo::MatrixTrait;
 
 #[LALR]
 grammar;


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