[librsvg] Length.get_unitless and from_cssparser should not be publically visible



commit 2ef2ea6f63c7c943825de99e901c3d21696405ed
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Oct 31 17:35:54 2019 -0600

    Length.get_unitless and from_cssparser should not be publically visible
    
    They are only for rsvg_internals, not for the public API.

 rsvg_internals/src/length.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/length.rs b/rsvg_internals/src/length.rs
index 8e373150..c7229958 100644
--- a/rsvg_internals/src/length.rs
+++ b/rsvg_internals/src/length.rs
@@ -219,12 +219,12 @@ impl Length {
 
     /// Returns the raw length after asserting units are either default or percent.
     #[inline]
-    pub fn get_unitless(&self) -> f64 {
+    pub(crate) fn get_unitless(&self) -> f64 {
         assert!(self.unit == LengthUnit::Px || self.unit == LengthUnit::Percent);
         self.length
     }
 
-    pub fn from_cssparser(parser: &mut Parser<'_, '_>) -> Result<Length, ValueErrorKind> {
+    pub(crate) fn from_cssparser(parser: &mut Parser<'_, '_>) -> Result<Length, ValueErrorKind> {
         let length = {
             let token = parser.next().map_err(|_| {
                 ValueErrorKind::Parse(ParseError::new(


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