Commit Graph

23 Commits (d56217a8f64a61cdaf56200bfbe847789dda0268)

Author SHA1 Message Date
Carol (Nichols || Goulding) 12b8095c46
feat: Upgrade to Rust 1.72.0 (#8589)
* feat: Upgrade to Rust 1.72.0

* fix: Allow a warning about an error we're intentionally creating

This is a test for an error. This lint warns that this code will cause
an error. Thanks lint, that's what we wanted!

* chore: rustfmt 1.72

* fix: Remove unnecessary hashes in raw string literals

Thanks Clippy!
https://rust-lang.github.io/rust-clippy/master/index.html#/needless_raw_string_hashes

Note that there are a number of false negatives with this lint; see
https://github.com/rust-lang/rust-clippy/issues/11420

* fix: Remove unnecessary explicit iteration

Looks like clippy::explicit_iter_loop was improved.
https://rust-lang.github.io/rust-clippy/master/index.html#/explicit_iter_loop

* fix: Allow clippy::manual_try_fold in a few places

Some of these might not be possible to rewrite with try_fold, or at
least not trivially. I don't feel confident enough to change these, in
any case. I think the lint is good to have on for future code though, so
that new code can be written with try_fold.

* fix: Remove useless creation of vectors when an array will do

Mostly in tests. Also fix some long lines.

Thanks Clippy!
https://rust-lang.github.io/rust-clippy/master/index.html#/useless_vec

* fix: Allow a single range in a vec init, which is actually what we want

Looks like Clippy's trying to catch a common mistake here, but for realz
we actually want `Vec<Range<usize>>` not `Vec<usize>`

https://rust-lang.github.io/rust-clippy/master/index.html#/single_range_in_vec_init

* fix: Remove a useless conversion

This looks like removing explicit iteration, but it's actually caught by
useless_conversion.

https://rust-lang.github.io/rust-clippy/master/index.html#/useless_conversion

* fix: Remove redundant pattern matching

Thanks Clippy!
https://rust-lang.github.io/rust-clippy/master/index.html#/redundant_pat

* fix: Allow an unwrap on a literal None in a test

This matches with the other tests better, and also when I tried to
remove the `unwrap_or_default` it changed the JSON sent from something
with an empty value to `null`, so I think the `or_default` part is
actually changing from one `None` to another `None`.

https://rust-lang.github.io/rust-clippy/master/index.html#/unnecessary_literal_unwrap
2023-08-29 05:57:38 +00:00
Carol (Nichols || Goulding) 0d6a4cc9f6
chore: Update to Rust 1.71 2023-07-14 10:20:51 -04:00
Stuart Carnie 0fc859f616
build: bump Rust version 2023-06-04 06:43:22 +10:00
Dom Dwyer 368d4af23f
build: bump rust version
Bump to 1.69 for more fixing magic.
2023-04-27 13:19:05 +02:00
Carol (Nichols || Goulding) cc7c44f76a
chore: Upgrade to Rust 1.68 (#7175)
* chore: Upgrade to Rust 1.68

* fix: Remove unnecessary into_iter, thanks Clippy!

* fix: Use the size of the type, not a reference to the type... oops.

Thanks clippy!

* fix: Return block directly instead of creating a variable

Thanks clippy!

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-03-12 13:22:20 +00:00
Carol (Nichols || Goulding) a82f7916d0
chore: Upgrade to Rust 1.67 2023-02-03 13:06:01 -05:00
Dom Dwyer e0dcfc8830
chore: bump rust to 1.66.1
Picks up a fix to SSH host authentication in cargo when pulling the
crates index:

    https://blog.rust-lang.org/2023/01/10/cve-2022-46176.html
2023-01-11 11:39:17 +01:00
Carol (Nichols || Goulding) a672fea405
chore: Update to Rust 1.66 2022-12-21 13:31:31 -05:00
Carol (Nichols || Goulding) a3bee0c303
chore: Upgrade to Rust 1.65 2022-11-09 10:29:13 -05:00
Carol (Nichols || Goulding) c8108f01e7
chore: Upgrade to Rust 1.64 (#5727)
* chore: Upgrade to Rust 1.64

* fix: Use iter find instead of a for loop, thanks clippy

* fix: Remove some needless borrows, thanks clippy

* fix: Use then_some rather than then with a closure, thanks clippy

* fix: Use iter retain rather than filter collect, thanks clippy

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-22 18:04:00 +00:00
Carol (Nichols || Goulding) 545a1a5228
chore: Upgrade to Rust 1.63 2022-08-11 15:04:00 -04:00
Carol (Nichols || Goulding) 1c4caa2cc2
chore: Upgrade to Rust 1.62 2022-07-01 13:31:31 -04:00
Carol (Nichols || Goulding) 8eece6135b
chore: Update to Rust 1.61 2022-05-19 14:39:05 -04:00
Dom Dwyer 3624d63529 build: use rust 1.60 2022-04-11 12:41:27 +01:00
Marco Neumann 33851be3a5
chore: upgrade Rust to 1.59 (#3875)
Mostly a few new clippy crates around `flat_map`, `and_then`, and
"underscore locks" (!!!):
https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_lock

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-28 15:14:19 +00:00
Dom Dwyer 5438a4afac build: use rust 1.58.1
Security bugfix release, see:
    https://groups.google.com/g/rustlang-security-announcements/c/R1fZFDhnJVQ?pli=1
2022-01-28 14:43:22 +00:00
Edd Robinson d1816b662f
chore: update rust to 1.58 (#3461)
* chore: update rust to 1.58

* fix: clippy

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2022-01-13 21:12:46 +00:00
Carol (Nichols || Goulding) bf1513cb8b
chore: Update stable Rust version 2021-12-02 10:46:39 -05:00
Carol (Nichols || Goulding) bb05ab4191 chore: Update Rust 2021-10-21 20:23:29 -04:00
Marco Neumann 368f0369ee chore: Rust 1.55 2021-09-10 12:36:49 +02:00
Carol (Nichols || Goulding) 49a4dd0125 feat: Upgrade to Rust 1.54 2021-07-29 21:07:43 -04:00
Andrew Lamb e6d995cbd8
chore: Update to Rust 1.53.0 (#1922)
* chore: Update to Rust 1.53.0

* fix: Update to latest clippy standards

* fix: bad refactor

* fix: Update escaping

* test: update test output

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-07-07 18:02:03 +00:00
Carol (Nichols || Goulding) f0efd20259 chore: Switch to rust-toolchain.toml to specify Rust components we need as well 2021-06-23 15:28:58 -04:00