Skip to content

Commit

Permalink
Merge pull request #6 from nomalab/update_reqwest_dep
Browse files Browse the repository at this point in the history
update reqwest dependency and bump to 0.6.6
  • Loading branch information
Romanelaf committed Jan 20, 2020
2 parents 0548c2d + 1ea06f9 commit c9302e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
@@ -1,9 +1,10 @@
language: rust
rust:
- 1.34.0
- 1.35.0
- 1.36.0
- 1.37.0
- 1.38.0
- 1.39.0
- 1.40.0
- stable
- beta
- nightly
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "file_api"
version = "0.6.5"
version = "0.6.6"
authors = ["Marc-Antoine Arnaud <marc.antoine@nomalab.com>"]
description = """
Library to abstract read. Based on prefix URL, it select the adapted reader (HTTP or local file system).
Expand All @@ -13,7 +13,7 @@ documentation = "https://docs.rs/file_api"
log = "0.4.1"
hyper = "^0.12"
hyperx = "^0.15"
reqwest = "< 0.9.18"
reqwest = "^0.9"

[dev-dependencies]
futures = "^0.1"
2 changes: 1 addition & 1 deletion src/file_reader.rs
Expand Up @@ -67,7 +67,7 @@ impl Reader for FileReader {
}

fn get_size(&mut self) -> Result<u64, String> {
let metadata = try!(fs::metadata(self.filename.clone()).map_err(|e| e.to_string()));
let metadata = fs::metadata(self.filename.clone()).map_err(|e| e.to_string())?;
Ok(metadata.len())
}
}
Expand Down

0 comments on commit c9302e2

Please sign in to comment.