Skip to content

Commit

Permalink
Bump MSRV and Rust version used in CI (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
msrd0 authored Sep 8, 2023
1 parent 065c201 commit 653f2cc
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.63.0
- uses: dtolnay/rust-toolchain@1.72.0
with:
components: clippy
- name: Check Clippy lints (reqwest)
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
matrix:
rust:
- name: MSRV
toolchain: "1.60"
toolchain: "1.63"
nightly: false
- name: Stable
toolchain: stable
Expand Down Expand Up @@ -123,7 +123,9 @@ jobs:
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: admintoken
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust.toolchain}}
id: rust-toolchain
- uses: actions/cache@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions README.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
<a href="https://www.rust-lang.org/en-US/">
<img src="https://img.shields.io/badge/Made%20with-Rust-orange.svg" alt='Build with Rust' />
</a>
<a href="https://blog.rust-lang.org/2022/04/07/Rust-1.60.0.html">
<img src="https://img.shields.io/badge/rustc-1.60+-yellow.svg" alt='Minimum Rust Version: 1.60' />
<a href="https://blog.rust-lang.org/2022/08/11/Rust-1.63.0.html">
<img src="https://img.shields.io/badge/rustc-1.63+-yellow.svg" alt='Minimum Rust Version: 1.63' />
</a>
</p>

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
<a href="https://www.rust-lang.org/en-US/">
<img src="https://img.shields.io/badge/Made%20with-Rust-orange.svg" alt='Build with Rust' />
</a>
<a href="https://blog.rust-lang.org/2022/04/07/Rust-1.60.0.html">
<img src="https://img.shields.io/badge/rustc-1.60+-yellow.svg" alt='Minimum Rust Version: 1.60' />
<a href="https://blog.rust-lang.org/2022/08/11/Rust-1.63.0.html">
<img src="https://img.shields.io/badge/rustc-1.63+-yellow.svg" alt='Minimum Rust Version: 1.63' />
</a>
</p>

Expand Down Expand Up @@ -167,7 +167,7 @@ To communicate with InfluxDB, you can choose the HTTP backend to be used configu
@ 2020 Gero Gerke and [contributors].

[contributors]: https://github.com/influxdb-rs/influxdb-rust/graphs/contributors
[__cargo_doc2readme_dependencies_info]: ggGkYW0BYXSEG-eS3ZnLalPKG8RSyE7OgxOuG5N_7FO9S6I9G5Bq0rFyX93cYXKEG5PjkhkfWGqnG0oaNZtY0rqCG3UxTXMZvJknG2Qnb8mp1lIsYWSBgmhpbmZsdXhkYmUwLjcuMA
[__cargo_doc2readme_dependencies_info]: ggGkYW0BYXSEG64av5CnNoNoGw8lPMr2b0MoG44uU0T70vGSG7osgcbjN7SoYXKEG5PjkhkfWGqnG0oaNZtY0rqCG3UxTXMZvJknG2Qnb8mp1lIsYWSBgmhpbmZsdXhkYmUwLjcuMA
[__link0]: https://github.com/influxdb-rs/influxdb-rust/blob/main/CONTRIBUTING.md
[__link1]: https://github.com/influxdb-rs/influxdb-rust/blob/main/CODE_OF_CONDUCT.md
[__link10]: https://curl.se/libcurl/
Expand Down
2 changes: 1 addition & 1 deletion influxdb/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl<'a> Debug for RedactPassword<'a> {
_ => (*k, v.as_str()),
})
.collect::<BTreeMap<&'static str, &str>>();
f.debug_map().entries(entries.into_iter()).finish()
f.debug_map().entries(entries).finish()
}
}

Expand Down
10 changes: 5 additions & 5 deletions influxdb/src/query/line_proto_term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl LineProtoTerm<'_> {
}

fn escape_any(s: &str, re: &Regex) -> String {
re.replace_all(s, r#"\$0"#).to_string()
re.replace_all(s, r"\$0").to_string()
}
}

Expand All @@ -101,23 +101,23 @@ mod test {

assert_eq!(
TagValue(&Type::Text("this is my special string".into())).escape(),
r#"this\ is\ my\ special\ string"#
r"this\ is\ my\ special\ string"
);
assert_eq!(
TagValue(&Type::Text("a tag w=i th == tons of escapes".into())).escape(),
r#"a\ tag\ w\=i\ th\ \=\=\ tons\ of\ escapes"#
r"a\ tag\ w\=i\ th\ \=\=\ tons\ of\ escapes"
);
assert_eq!(
TagValue(&Type::Text("no_escapes".into())).escape(),
r#"no_escapes"#
);
assert_eq!(
TagValue(&Type::Text("some,commas,here".into())).escape(),
r#"some\,commas\,here"#
r"some\,commas\,here"
);

assert_eq!(Measurement(r#"wea", ther"#).escape(), r#"wea"\,\ ther"#);
assert_eq!(TagKey(r#"locat\ ,=ion"#).escape(), r#"locat\\ \,\=ion"#);
assert_eq!(TagKey(r"locat\ ,=ion").escape(), r"locat\\ \,\=ion");

assert_eq!(FieldValue(&Type::Boolean(true)).escape(), r#"true"#);
assert_eq!(FieldValue(&Type::Boolean(false)).escape(), r#"false"#);
Expand Down

0 comments on commit 653f2cc

Please sign in to comment.