Skip to content

Commit

Permalink
feat(headers): change from_str return value to hyper::Result
Browse files Browse the repository at this point in the history
  • Loading branch information
lame-nickname committed Jun 15, 2015
1 parent b0a093f commit ab0b0a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/header/common/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl fmt::Display for Range {
impl FromStr for Range {
type Err = ::Error;

fn from_str(s: &str) -> Result<Range, ::Error> {
fn from_str(s: &str) -> ::Result<Range> {
let mut iter = s.splitn(2, "=");

match (iter.next(), iter.next()) {
Expand All @@ -123,7 +123,7 @@ impl FromStr for Range {
impl FromStr for RangeSpec {
type Err = ::Error;

fn from_str(s: &str) -> Result<RangeSpec, ::Error> {
fn from_str(s: &str) -> ::Result<RangeSpec> {
let mut parts = s.splitn(2, "-");

match (parts.next(), parts.next()) {
Expand Down

0 comments on commit ab0b0a1

Please sign in to comment.