Skip to content

Commit 78d738a

Browse files
committed
Fix clippy
1 parent cdf9439 commit 78d738a

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ jobs:
168168
cargo update idna_adapter --precise 1.1.0
169169
cargo update triomphe --precise 0.1.11
170170
cargo update base64ct --precise 1.7.3
171+
cargo update deranged --precise 0.5.3
172+
cargo update time --precise 0.3.40
171173
172174
- name: Check
173175
run: cargo check --features full

src/framework/standard/parse/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ fn parse_cmd<'a>(
311311
};
312312
}
313313

314-
Err(ParseError::UnrecognisedCommand(Some(n.to_string())))
314+
Err(ParseError::UnrecognisedCommand(Some(n)))
315315
}
316316
.boxed()
317317
}

src/framework/standard/structures/mod.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,15 @@ mod check;
1616

1717
pub use self::check::*;
1818

19-
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
19+
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
2020
#[non_exhaustive]
2121
pub enum OnlyIn {
2222
Dm,
2323
Guild,
24+
#[default]
2425
None,
2526
}
2627

27-
impl Default for OnlyIn {
28-
fn default() -> Self {
29-
Self::None
30-
}
31-
}
32-
3328
#[derive(Debug, Default, PartialEq)]
3429
pub struct CommandOptions {
3530
/// A set of checks to be called prior to executing the command. The checks will short-circuit

0 commit comments

Comments
 (0)