summary refs log tree commit diff
path: root/src/path.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/path.rs')
-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> {