Skip to content

Commit

Permalink
ParseError -> ()
Browse files Browse the repository at this point in the history
  • Loading branch information
brigand committed Sep 18, 2018
1 parent c9e6f66 commit 687b374
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions irc-proto/src/prefix.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//! A module providing an enum for a message prefix.
use std::string;
use std::str::FromStr;
use std::fmt;

Expand Down Expand Up @@ -79,7 +78,7 @@ impl Prefix {

/// This implementation never returns an error and is isomorphic with `Display`.
impl FromStr for Prefix {
type Err = string::ParseError;
type Err = ();

fn from_str(s: &str) -> Result<Self, Self::Err> {
Ok(Prefix::new_from_str(s))
Expand Down

0 comments on commit 687b374

Please sign in to comment.