Skip to content

Commit fc4749b

Browse files
committed
update readme
1 parent f205d35 commit fc4749b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,19 @@ async fn main() -> Result<(), Error> {
7575
// Let's write some data into a measurement called `weather`
7676
let weather_readings = vec![
7777
WeatherReading {
78-
time: Timestamp::Hours(1).into(),
78+
time: Timestamp::Hours(1).try_into().unwrap(),
7979
humidity: 30,
8080
wind_direction: String::from("north"),
8181
}
82-
.into_query("weather"),
82+
.try_into_query("weather")
83+
.unwrap(),
8384
WeatherReading {
84-
time: Timestamp::Hours(2).into(),
85+
time: Timestamp::Hours(2).try_into().unwrap(),
8586
humidity: 40,
8687
wind_direction: String::from("west"),
8788
}
88-
.into_query("weather"),
89+
.try_into_query("weather")
90+
.unwrap(),
8991
];
9092

9193
client.query(weather_readings).await?;
@@ -129,7 +131,7 @@ To communicate with InfluxDB, you can choose the HTTP backend to be used configu
129131
@ 2020-2024 Gero Gerke, msrd0 and [contributors].
130132

131133
[contributors]: https://github.com/influxdb-rs/influxdb-rust/graphs/contributors
132-
[__cargo_doc2readme_dependencies_info]: ggGkYW0CYXSEGzJ_QpW55zB1G0S-TER-rIfLG2gXv8EYBG3jG1nuXXn-kdx-YXKEG8LHWNBBuXgSGz-2Lrx4E_kTG0bJiXb6A8zNG9GhXhvU8L0xYWSBgmhpbmZsdXhkYmUwLjcuMg
134+
[__cargo_doc2readme_dependencies_info]: ggGkYW0CYXSEGzJ_QpW55zB1G0S-TER-rIfLG2gXv8EYBG3jG1nuXXn-kdx-YXKEG5esg8JWCUnDGygXCh47ngu0G4kPgAyV809_G2pbKPyN9jeVYWSBgmhpbmZsdXhkYmUwLjcuMg
133135
[__link0]: https://github.com/influxdb-rs/influxdb-rust/blob/main/CONTRIBUTING.md
134136
[__link1]: https://github.com/influxdb-rs/influxdb-rust/blob/main/CODE_OF_CONDUCT.md
135137
[__link2]: https://github.com/influxdb-rs/influxdb-rust/blob/main/CHANGELOG.md

0 commit comments

Comments
 (0)