-
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)]
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() })
}
}