We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9520d20 commit d8d136aCopy full SHA for d8d136a
src/client/mod.rs
@@ -151,8 +151,7 @@ impl InfluxDbClient {
151
})
152
.and_then(|body| {
153
if let Ok(utf8) = std::str::from_utf8(&body) {
154
- let mut s = String::new();
155
- utf8.clone_into(&mut s);
+ let s = utf8.to_owned();
156
157
// todo: improve error parsing without serde
158
if s.contains("\"error\"") {
src/lib.rs
@@ -1,5 +1,4 @@
1
#![allow(dead_code)]
2
-#![feature(toowned_clone_into)]
3
4
#[macro_use]
5
extern crate failure;
0 commit comments