Skip to content

Commit a58fe0b

Browse files
committed
Update Rust Edition to 2021
Our MSRV is 1.67.1, edition 2021 was introduced in 1.56. We are already using resolver 2, which became default in 2021. Safe to say we can just migrate to 2021 completely at this point.
1 parent ad0d84a commit a58fe0b

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ resolver = "2"
66

77
[workspace.package]
88
authors = ["Gero Gerke <[email protected]>", "Dominic <[email protected]>"]
9-
edition = "2018"
9+
edition = "2021"
1010
rust-version = "1.67.1"
1111
license = "MIT"
1212
repository = "https://github.com/influxdb-rs/influxdb-rust"

influxdb/src/query/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ mod tests {
255255
MILLIS_PER_SECOND, MINUTES_PER_HOUR, NANOS_PER_MICRO, NANOS_PER_MILLI, SECONDS_PER_MINUTE,
256256
};
257257
use crate::query::{Timestamp, ValidQuery};
258-
use std::convert::TryInto;
259258
#[test]
260259
fn test_equality_str() {
261260
assert_eq!(ValidQuery::from("hello"), "hello");

influxdb_derive/src/writeable.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use proc_macro2::TokenStream;
22
use quote::{format_ident, quote};
3-
use std::convert::TryFrom;
43
use syn::{
54
parse::{Parse, ParseStream},
65
punctuated::Punctuated,

0 commit comments

Comments
 (0)