Skip to content

Commit ee5f966

Browse files
fix: compile error from into ambiguity (#38)
It seems like `deranged` had an update that created an ambiguity with `into`. This trivially fixes that.
1 parent 1e9ac15 commit ee5f966

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

twilight-interactions/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "twilight-interactions"
3-
version = "0.16.1"
3+
version = "0.16.2"
44
description = "Macros and utilities to make Discord Interactions easy to use with Twilight."
55
categories = ["parsing", "config", "asynchronous"]
66
keywords = ["twilight", "discord", "slash-command"]

twilight-interactions/src/command/command_model.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,13 +452,13 @@ impl CommandOption for String {
452452
};
453453

454454
if let Some(min) = data.min_length {
455-
if value.len() < min.into() {
455+
if value.len() < usize::from(min) {
456456
todo!()
457457
}
458458
}
459459

460460
if let Some(max) = data.max_length {
461-
if value.len() > max.into() {
461+
if value.len() > usize::from(max) {
462462
todo!()
463463
}
464464
}

0 commit comments

Comments
 (0)