|
18 | 18 | /// If a catastrophic error occurs, then the state will be poisoned. If the state is poisoned then that's
|
19 | 19 | /// almost certainly an implementation bug, and should never happen. But in an abundance of caution it is
|
20 | 20 | /// included to be safe.
|
21 |
| -#[derive(Debug, Clone, PartialEq)] |
| 21 | +#[derive(Clone, PartialEq, Debug)] |
22 | 22 | pub struct BorrowState {
|
23 | 23 | /// The number of `&T` references that are tracked.
|
24 | 24 | shared_count: usize,
|
@@ -267,7 +267,7 @@ impl Default for BorrowState {
|
267 | 267 | }
|
268 | 268 | }
|
269 | 269 |
|
270 |
| -#[derive(Debug, Clone, PartialEq, Eq)] |
| 270 | +#[derive(Clone, Eq, PartialEq, Debug)] |
271 | 271 | pub enum BorrowStateErr {
|
272 | 272 | Poisoned(String),
|
273 | 273 | IsPoisoned,
|
@@ -309,7 +309,7 @@ mod proptests {
|
309 | 309 | }
|
310 | 310 | }
|
311 | 311 |
|
312 |
| - #[derive(Debug, Clone, Copy, PartialEq, Eq)] |
| 312 | + #[derive(Copy, Clone, Eq, PartialEq, Debug)] |
313 | 313 | enum Operation {
|
314 | 314 | IncShared,
|
315 | 315 | DecShared,
|
@@ -362,7 +362,7 @@ mod proptests {
|
362 | 362 | }
|
363 | 363 | }
|
364 | 364 |
|
365 |
| - #[derive(Debug, Clone, PartialEq, Eq)] |
| 365 | + #[derive(Clone, Eq, PartialEq, Debug)] |
366 | 366 | struct OperationExecutor {
|
367 | 367 | vec: Vec<Operation>,
|
368 | 368 | }
|
|
0 commit comments