[rs] Clean up 2022_13

This commit is contained in:
Joscha 2022-12-13 10:02:50 +01:00
parent 80f228ca8d
commit 1dd0c4eaf8

View file

@ -1,7 +1,6 @@
use std::cmp::Ordering;
use std::iter::Peekable;
use std::iter::{self, Peekable};
use std::str::Chars;
use std::{fmt, iter};
#[derive(Clone)]
enum Message {
@ -9,15 +8,6 @@ enum 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 {
fn cmp(&self, other: &Self) -> Ordering {
match (self, other) {