Philipp Krones
62a82b361c
Format let-chains across the code base
...
In the updated nightly version, it seems that rustfmt now supports formatting
let-chains. Since we're using them a lot, it's a lot of reformatting.
2023-11-02 17:24:30 +01:00
Alex Macleod
7347c1803f
Set existing doc-tests to no_run
2023-10-23 15:28:26 +00:00
Philipp Krones
5f031561ef
Merge remote-tracking branch 'upstream/master' into rustup
2023-10-21 13:41:46 +02:00
Jason Newcomb
9de3e6c928
Add more diagnostic items for clippy
2023-10-05 18:21:47 -04:00
Philipp Krones
d6d530fd0b
Merge commit 'd9c24d1b1ee61f276e550b967409c9f155eac4e3' into clippyup
2023-07-17 10:22:32 +02:00
Alex Macleod
2811effe34
Add imports_granularity = "Module"
to rustfmt.toml
2023-07-13 12:44:57 +00:00
Philipp Krones
b76b0aeb63
Merge commit '435a8ad86c7a33bd7ffb91c59039943408d3b6aa' into clippyup
2023-05-20 15:39:26 +02:00
Alex Macleod
cfa5aa2aad
Don't suggest unnameable types in box_default, let_underscore_untyped
2023-05-18 18:51:27 +00:00
Jason Newcomb
0413fb35ba
Merge commit '149392b0baa4730c68f3c3eadf5c6ed7b16b85a4' into clippyup
2023-02-25 19:28:50 -05:00
Samuel Tardieu
92c403c9b0
Box::default(): do not omit the type of the removed trait object
...
Within a larger expression, when the type of `Box::new(T::default())` is
`Box<dyn Trait>`, the concrete type `T` cannot be omitted in the
proposed replacement `Box::<T>::default()`.
2023-02-20 11:58:27 +01:00
Philipp Krones
d21616737b
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
2023-01-12 19:48:13 +01:00
Andre Bogus
d3a50d2fda
trim paths in box_default
2023-01-04 00:44:20 +01:00
Philipp Krones
1c422524c7
Merge commit '4bdfb0741dbcecd5279a2635c3280726db0604b5' into clippyup
2022-12-17 14:12:54 +01:00
xFrednet
2532c56d86
Update version attribute for 1.66 lints
2022-12-13 23:36:47 +01:00
flip1995
cd0bb7de01
Merge commit '4f142aa1058f14f153f8bfd2d82f04ddb9982388' into clippyup
2022-10-23 15:18:45 +02:00
bors
4f142aa105
Auto merge of #9622 - llogiq:box-dyn-default, r=Alexendoo
...
fix `box-default` ignoring trait objects' types
This avoids removing the turbofish when the `Box` type is a `dyn` or `impl _`.
This fixes #9621 .
---
changelog: none
2022-10-23 11:15:19 +00:00
Andre Bogus
f8ae2f5807
fix box-default
linting no_std
non-boxes
2022-10-15 23:19:43 +02:00
Andre Bogus
bd61fdbd5f
fix box-default
ignoring trait objects' types
2022-10-10 21:11:37 +02:00
Andre Bogus
d3c041a086
extend box-default
lint, add suggestion
2022-10-06 16:00:45 +02:00
Philipp Krones
d75b25faab
Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup
2022-10-06 09:44:38 +02:00
Andre Bogus
63f441ec85
add box-default
lint
2022-09-27 13:26:23 +02:00