aboutsummaryrefslogtreecommitdiff
path: root/src/ids.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ids.rs')
-rw-r--r--src/ids.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ids.rs b/src/ids.rs
index 611212e..bac7f2e 100644
--- a/src/ids.rs
+++ b/src/ids.rs
@@ -1,5 +1,5 @@
use std::fmt::Display;
-use std::fmt::Error;
+use std::convert::Infallible;
pub trait Identifier: Display {
fn value(&self) -> &str;
@@ -50,7 +50,7 @@ macro_rules! identifer {
}
impl std::str::FromStr for $name {
- type Err = Error;
+ type Err = Infallible;
fn from_str(s: &str) -> Result<Self, Self::Err> {
Ok($name(s.to_string()))