Skip to content

Commit

Permalink
bump to 0.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
driftluo committed Oct 31, 2018
1 parent b405fc7 commit 24740b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "influx_db_client"
version = "0.3.5"
version = "0.3.6"
authors = ["piaoliu <[email protected]>"]
documentation = "https://docs.rs/influx_db_client/"
repository = "https://github.com/driftluo/InfluxDBClient-rs"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This project has been able to run properly, PR is welcome.

```
[dependencies]
influx_db_client = "^0.3.5"
influx_db_client = "^0.3.6"
```

### http
Expand Down
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl Client {
if let Ok(res) = self.client.get(url).send() {
match res.status_raw().0 {
204 => match res.headers.get_raw("X-Influxdb-Version") {
Some(i) => Some(String::from_utf8(i[0].to_vec()).unwrap()),
Some(i) => String::from_utf8(i[0].to_vec()).ok(),
None => Some(String::from("Don't know")),
},
_ => None,
Expand Down

0 comments on commit 24740b3

Please sign in to comment.