summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@gmail.com>2021-01-01 19:23:20 -0800
committerIrene Knapp <ireneista@gmail.com>2021-01-01 19:23:20 -0800
commit51350d90092b3099630e2fd98bfb0935cf7b0945 (patch)
tree1bc8d4d93de6ea362faffafb9a034dbfae761f6f /src
parenta5cd09a36aadb0c9f9f0e8c118121ad62c88705d (diff)
use FromStr
Diffstat (limited to 'src')
-rw-r--r--src/path.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/path.rs b/src/path.rs
index c566b9c..570b8ef 100644
--- a/src/path.rs
+++ b/src/path.rs
@@ -9,6 +9,9 @@
 use crate::prelude::*;
 use crate::path::error::*;
 
+use std::str::FromStr;
+
+
 lalrpop_mod!(pub parser, "/path/parser.rs");
 pub mod error;
 
@@ -149,7 +152,7 @@ impl std::fmt::Display for GenericPathComponent {
 }
 
 
-impl std::str::FromStr for FileName {
+impl FromStr for FileName {
   type Err = FileNameError;
 
   fn from_str(input: &str) -> std::result::Result<Self, Self::Err> {
@@ -162,7 +165,7 @@ impl std::str::FromStr for FileName {
 }
 
 
-impl std::str::FromStr for DirectoryName {
+impl FromStr for DirectoryName {
   type Err = DirectoryNameError;
 
   fn from_str(input: &str) -> std::result::Result<Self, Self::Err> {
@@ -175,7 +178,7 @@ impl std::str::FromStr for DirectoryName {
 }
 
 
-impl std::str::FromStr for GenericPathComponent {
+impl FromStr for GenericPathComponent {
   type Err = PathError;
 
   fn from_str(input: &str) -> std::result::Result<Self, Self::Err> {