-
-
Notifications
You must be signed in to change notification settings - Fork 811
Commit 33b2677
committed
Suppress broken semicolon_if_nothing_returned lint
rust-lang/rust-clippy#7768
error: consider adding a `;` to the last statement for consistent formatting
--> serde/src/de/impls.rs:849:1
|
849 | / seq_impl!(
850 | | BinaryHeap<T: Ord>,
851 | | seq,
852 | | BinaryHeap::clear,
... |
855 | | BinaryHeap::push
856 | | );
| |__^
|
note: the lint level is defined here
--> serde/src/lib.rs:97:52
|
97 | #![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))]
| ^^^^^^^^^^^^^^^
= note: `#[deny(clippy::semicolon_if_nothing_returned)]` implied by `#[deny(clippy::pedantic)]`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
help: add a `;` here
|
849 + seq_impl!(
850 + BinaryHeap<T: Ord>,
851 + seq,
852 + BinaryHeap::clear,
853 + BinaryHeap::with_capacity(size_hint::cautious(seq.size_hint())),
854 + BinaryHeap::reserve,
...
error: consider adding a `;` to the last statement for consistent formatting
--> serde/src/de/impls.rs:859:1
|
859 | / seq_impl!(
860 | | BTreeSet<T: Eq + Ord>,
861 | | seq,
862 | | BTreeSet::clear,
... |
865 | | BTreeSet::insert
866 | | );
| |__^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
help: add a `;` here
|
859 + seq_impl!(
860 + BTreeSet<T: Eq + Ord>,
861 + seq,
862 + BTreeSet::clear,
863 + BTreeSet::new(),
864 + nop_reserve,
...
error: consider adding a `;` to the last statement for consistent formatting
--> serde/src/de/impls.rs:869:1
|
869 | / seq_impl!(
870 | | LinkedList<T>,
871 | | seq,
872 | | LinkedList::clear,
... |
875 | | LinkedList::push_back
876 | | );
| |__^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
help: add a `;` here
|
869 + seq_impl!(
870 + LinkedList<T>,
871 + seq,
872 + LinkedList::clear,
873 + LinkedList::new(),
874 + nop_reserve,
...
error: consider adding a `;` to the last statement for consistent formatting
--> serde/src/de/impls.rs:879:1
|
879 | / seq_impl!(
880 | | HashSet<T: Eq + Hash, S: BuildHasher + Default>,
881 | | seq,
882 | | HashSet::clear,
883 | | HashSet::with_capacity_and_hasher(size_hint::cautious(seq.size_hint()), S::default()),
884 | | HashSet::reserve,
885 | | HashSet::insert);
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
help: add a `;` here
|
879 + seq_impl!(
880 + HashSet<T: Eq + Hash, S: BuildHasher + Default>,
881 + seq,
882 + HashSet::clear,
883 + HashSet::with_capacity_and_hasher(size_hint::cautious(seq.size_hint()), S::default()),
884 + HashSet::reserve,
...
error: consider adding a `;` to the last statement for consistent formatting
--> serde/src/de/impls.rs:888:1
|
888 | / seq_impl!(
889 | | VecDeque<T>,
890 | | seq,
891 | | VecDeque::clear,
... |
894 | | VecDeque::push_back
895 | | );
| |__^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
help: add a `;` here
|
888 + seq_impl!(
889 + VecDeque<T>,
890 + seq,
891 + VecDeque::clear,
892 + VecDeque::with_capacity(size_hint::cautious(seq.size_hint())),
893 + VecDeque::reserve,
...
error: consider adding a `;` to the last statement for consistent formatting
--> serde/src/de/impls.rs:1300:1
|
1300 | / map_impl!(
1301 | | BTreeMap<K: Ord, V>,
1302 | | map,
1303 | | BTreeMap::new());
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
help: add a `;` here
|
1300 + map_impl!(
1301 + BTreeMap<K: Ord, V>,
1302 + map,
1303 + BTreeMap::new());;
|
error: consider adding a `;` to the last statement for consistent formatting
--> serde/src/de/impls.rs:1306:1
|
1306 | / map_impl!(
1307 | | HashMap<K: Eq + Hash, V, S: BuildHasher + Default>,
1308 | | map,
1309 | | HashMap::with_capacity_and_hasher(size_hint::cautious(map.size_hint()), S::default()));
| |___________________________________________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
help: add a `;` here
|
1306 + map_impl!(
1307 + HashMap<K: Eq + Hash, V, S: BuildHasher + Default>,
1308 + map,
1309 + HashMap::with_capacity_and_hasher(size_hint::cautious(map.size_hint()), S::default()));;
|1 parent 01ded9f commit 33b2677Copy full SHA for 33b2677
1 file changed
+2
-0
lines changed+2
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
101 | 101 |
| |
102 | 102 |
| |
103 | 103 |
| |
| 104 | + | |
| 105 | + | |
104 | 106 |
| |
105 | 107 |
| |
106 | 108 |
| |
|
0 commit comments