]> git.proxmox.com Git - rustc.git/blobdiff - vendor/ucd-parse/src/age.rs
New upstream version 1.47.0~beta.2+dfsg1
[rustc.git] / vendor / ucd-parse / src / age.rs
index 491192d3c2b567e3647bd8447d4d9194b3dc5e6d..3c93f07072bc68fee19d92beaf5452f978da1643 100644 (file)
@@ -1,12 +1,11 @@
-
 use std::path::Path;
 use std::str::FromStr;
 
-use common::{
-    UcdFile, UcdFileByCodepoint, Codepoints, CodepointIter,
-    parse_codepoint_association,
+use crate::common::{
+    parse_codepoint_association, CodepointIter, Codepoints, UcdFile,
+    UcdFileByCodepoint,
 };
-use error::Error;
+use crate::error::Error;
 
 /// A single row in the `DerivedAge.txt` file.
 #[derive(Clone, Debug, Default, Eq, PartialEq)]
@@ -34,10 +33,7 @@ impl FromStr for Age {
 
     fn from_str(line: &str) -> Result<Age, Error> {
         let (codepoints, script) = parse_codepoint_association(line)?;
-        Ok(Age {
-            codepoints: codepoints,
-            age: script.to_string(),
-        })
+        Ok(Age { codepoints, age: script.to_string() })
     }
 }