Skip to content
This repository has been archived by the owner on Jun 2, 2019. It is now read-only.

Commit

Permalink
Update URL to 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Palmer committed May 7, 2016
1 parent 4aed898 commit b1156aa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ chrono = "0.2"
curl = "0.2"
log = "0.3"
quick-xml = "0.2"
url = "0.5"
url = "1.1"

[features]
default = []
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Crates.io](https://img.shields.io/crates/v/feed.svg?style=flat-square)](https://crates.io/crates/feed)[![API Documentation](https://img.shields.io/badge/doc-rust-b7410e.svg?style=flat-square)](http://red-oxide.github.io/feed)

[![Build Status](https://img.shields.io/travis/red-oxide/feed.svg?style=flat-square)](https://travis-ci.org/red-oxide/feed)[![Clippy Linting Result](https://clippy.bashy.io/github/red-oxide/feed/master/badge.svg?style=flat-square)](https://clippy.bashy.io/github/red-oxide/feed/master/log)[![Coverage Status](https://img.shields.io/coveralls/red-oxide/feed.svg?style=flat-square)](https://coveralls.io/github/red-oxide/feed?branch=master)
[![Build Status](https://img.shields.io/travis/red-oxide/feed.svg?style=flat-square)](https://travis-ci.org/red-oxide/feed)[![Clippy Linting Result](https://clippy.bashy.io/github/red-oxide/feed/master/badge.svg?style=flat-square)](https://clippy.bashy.io/github/red-oxide/feed/master/log)

Library for creating rss feeds and parsing rss feeds from an URL and retrieving the elements

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ impl FeedBuilder {
/// }
/// ```
pub fn read_from_url(&mut self, feed_url: Url) -> &mut FeedBuilder {
if !feed_url.serialize().as_str().ends_with(".xml") {
if !feed_url.as_str().ends_with(".xml") {
panic!(errors::missing_xml_error());
}
let response = http::handle()
.get(feed_url.serialize())
.get(feed_url.into_string())
.exec()
.expect(errors::response_error());
let body = response.get_body();
Expand Down

0 comments on commit b1156aa

Please sign in to comment.