Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2bc0934

Browse files
authored
Bump MSRV to 1.65 and fix warnings (#135)
1 parent 4a93896 commit 2bc0934

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

‎.github/workflows/rust.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v3
27-
- uses: dtolnay/rust-toolchain@1.72.0
27+
- uses: dtolnay/rust-toolchain@1.75.0
2828
with:
2929
components: clippy
3030
- name: Check Clippy lints (reqwest)
@@ -54,7 +54,7 @@ jobs:
5454
matrix:
5555
rust:
5656
- name: MSRV
57-
toolchain: "1.63"
57+
toolchain: "1.65"
5858
nightly: false
5959
- name: Stable
6060
toolchain: stable

‎README.j2‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
<a href="https://www.rust-lang.org/en-US/">
2626
<img src="https://img.shields.io/badge/Made%20with-Rust-orange.svg" alt='Build with Rust' />
2727
</a>
28-
<a href="https://blog.rust-lang.org/2022/08/11/Rust-1.63.0.html">
29-
<img src="https://img.shields.io/badge/rustc-1.63+-yellow.svg" alt='Minimum Rust Version: 1.63' />
28+
<a href="https://blog.rust-lang.org/2022/11/03/Rust-1.65.0.html">
29+
<img src="https://img.shields.io/badge/rustc-1.65+-yellow.svg" alt='Minimum Rust Version: 1.65' />
3030
</a>
3131
</p>
3232

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
<a href="https://www.rust-lang.org/en-US/">
2626
<img src="https://img.shields.io/badge/Made%20with-Rust-orange.svg" alt='Build with Rust' />
2727
</a>
28-
<a href="https://blog.rust-lang.org/2022/08/11/Rust-1.63.0.html">
29-
<img src="https://img.shields.io/badge/rustc-1.63+-yellow.svg" alt='Minimum Rust Version: 1.63' />
28+
<a href="https://blog.rust-lang.org/2022/11/03/Rust-1.65.0.html">
29+
<img src="https://img.shields.io/badge/rustc-1.65+-yellow.svg" alt='Minimum Rust Version: 1.65' />
3030
</a>
3131
</p>
3232

@@ -166,7 +166,7 @@ To communicate with InfluxDB, you can choose the HTTP backend to be used configu
166166
@ 2020 Gero Gerke and [contributors].
167167

168168
[contributors]: https://github.com/influxdb-rs/influxdb-rust/graphs/contributors
169-
[__cargo_doc2readme_dependencies_info]: ggGkYW0BYXSEG64av5CnNoNoGw8lPMr2b0MoG44uU0T70vGSG7osgcbjN7SoYXKEGzTIyZ81-O7yGzBPOAorSf5GGwJWIVB6K85jG41Hl-f5lXJVYWSBgmhpbmZsdXhkYmUwLjcuMQ
169+
[__cargo_doc2readme_dependencies_info]: ggGkYW0BYXSEG_Yk-0hvrVPoG-pGw0Sym8kbG2s5Ga25QGRAG6zgaYax6AfsYXKEGzTIyZ81-O7yGzBPOAorSf5GGwJWIVB6K85jG41Hl-f5lXJVYWSBgmhpbmZsdXhkYmUwLjcuMQ
170170
[__link0]: https://github.com/influxdb-rs/influxdb-rust/blob/main/CONTRIBUTING.md
171171
[__link1]: https://github.com/influxdb-rs/influxdb-rust/blob/main/CODE_OF_CONDUCT.md
172172
[__link10]: https://curl.se/libcurl/

‎influxdb/src/query/mod.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ where
9191
T: TimeZone,
9292
{
9393
fn from(date_time: DateTime<T>) -> Self {
94-
Timestamp::Nanoseconds(date_time.timestamp_nanos() as u128)
94+
Timestamp::Nanoseconds(date_time.timestamp_nanos_opt().unwrap() as u128)
9595
}
9696
}
9797

‎influxdb/src/query/write_query.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ impl Query for Vec<WriteQuery> {
267267

268268
fn get_type(&self) -> QueryType {
269269
QueryType::WriteQuery(
270-
self.get(0)
270+
self.first()
271271
.map(|q| q.get_precision())
272272
// use "ms" as placeholder if query is empty
273273
.unwrap_or_else(|| "ms".to_owned()),

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /