Skip to content

Commit 6e2a80f

Browse files
committed
chore: sort derives
1 parent 9990e24 commit 6e2a80f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ include = [
2121
]
2222

2323
[dependencies]
24-
smallvec = { version = "1.14.0", features = ["const_new"] }
24+
smallvec = { version = "1.15.0", features = ["const_new"] }
2525

2626
[dev-dependencies]
2727
bytes = "1"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ impl<'a, T> IntoIterator for &'a PathTree<T> {
274274
}
275275

276276
/// Matched route path infomation.
277-
#[derive(Clone, Debug, PartialEq, Eq)]
277+
#[derive(Clone, Debug, Eq, PartialEq)]
278278
pub struct Path<'a, 'b> {
279279
pub id: &'a usize,
280280
pub pieces: &'a [Piece],

src/node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use smallvec::SmallVec;
99

1010
use crate::Kind;
1111

12-
#[derive(Clone, Debug, PartialEq, Eq)]
12+
#[derive(Clone, Debug, Eq, PartialEq)]
1313
pub enum Key {
1414
String(Vec<u8>),
1515
Parameter(Kind),

src/parser.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use alloc::{string::ToString, vec::Vec};
22
use core::{iter::Peekable, str::CharIndices};
33

4-
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
4+
#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)]
55
pub enum Kind {
66
/// `:` 58
77
/// `:name`
@@ -22,13 +22,13 @@ pub enum Kind {
2222
// TODO: regexp
2323
}
2424

25-
#[derive(Clone, Debug, PartialEq, Eq)]
25+
#[derive(Clone, Debug, Eq, PartialEq)]
2626
pub enum Piece {
2727
String(Vec<u8>),
2828
Parameter(Position, Kind),
2929
}
3030

31-
#[derive(Clone, Debug, PartialEq, Eq)]
31+
#[derive(Clone, Debug, Eq, PartialEq)]
3232
pub enum Position {
3333
Index(usize, Vec<u8>),
3434
Named(Vec<u8>),

0 commit comments

Comments
 (0)