ParseError -> ()
This commit is contained in:
parent
c9e6f6663f
commit
687b374801
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
||||||
//! A module providing an enum for a message prefix.
|
//! A module providing an enum for a message prefix.
|
||||||
use std::string;
|
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
||||||
|
@ -79,7 +78,7 @@ impl Prefix {
|
||||||
|
|
||||||
/// This implementation never returns an error and is isomorphic with `Display`.
|
/// This implementation never returns an error and is isomorphic with `Display`.
|
||||||
impl FromStr for Prefix {
|
impl FromStr for Prefix {
|
||||||
type Err = string::ParseError;
|
type Err = ();
|
||||||
|
|
||||||
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||||
Ok(Prefix::new_from_str(s))
|
Ok(Prefix::new_from_str(s))
|
||||||
|
|
Loading…
Add table
Reference in a new issue