[rs] Clean up 2022_13
This commit is contained in:
parent
80f228ca8d
commit
1dd0c4eaf8
1 changed files with 1 additions and 11 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
use std::cmp::Ordering;
|
use std::cmp::Ordering;
|
||||||
use std::iter::Peekable;
|
use std::iter::{self, Peekable};
|
||||||
use std::str::Chars;
|
use std::str::Chars;
|
||||||
use std::{fmt, iter};
|
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
enum Message {
|
enum Message {
|
||||||
|
|
@ -9,15 +8,6 @@ enum Message {
|
||||||
List(Vec<Message>),
|
List(Vec<Message>),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl fmt::Debug for Message {
|
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
||||||
match self {
|
|
||||||
Self::Int(int) => int.fmt(f),
|
|
||||||
Self::List(list) => f.debug_list().entries(list).finish(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Ord for Message {
|
impl Ord for Message {
|
||||||
fn cmp(&self, other: &Self) -> Ordering {
|
fn cmp(&self, other: &Self) -> Ordering {
|
||||||
match (self, other) {
|
match (self, other) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue