mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-29 23:11:02 +00:00
Impl From<ListType> for i32 instead of Into<i32> for ListType
This commit is contained in:
parent
6eee4b0b65
commit
4a15bef34f
1 changed files with 3 additions and 3 deletions
|
@ -30,9 +30,9 @@ impl TryFrom<i32> for ListType {
|
|||
}
|
||||
}
|
||||
|
||||
impl Into<i32> for ListType {
|
||||
fn into(self) -> i32 {
|
||||
match self {
|
||||
impl From<ListType> for i32 {
|
||||
fn from(list_type: ListType) -> Self {
|
||||
match list_type {
|
||||
ListType::User => 0,
|
||||
ListType::Blog => 1,
|
||||
ListType::Word => 2,
|
||||
|
|
Loading…
Reference in a new issue