Skip to content

Commit 5272391

Browse files
authored
Deserialise Token from Strings instead of &strs (#3104)
1 parent ebbf0b6 commit 5272391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/secrets.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl typesize::TypeSize for SecretString {
4949
/// A type for securely storing and passing around a Discord token.
5050
#[cfg_attr(feature = "typesize", derive(typesize::derive::TypeSize))]
5151
#[derive(Clone, Debug, Deserialize, Serialize)]
52-
#[serde(try_from = "&str")]
52+
#[serde(try_from = "String")]
5353
pub struct Token(SecretString);
5454

5555
impl Token {

0 commit comments

Comments
 (0)