From 9f02b81ac6ba493ac5835514066577c16a0bec3e Mon Sep 17 00:00:00 2001 From: rooooooooob Date: Tue, 27 Feb 2024 09:30:33 -0800 Subject: [PATCH] forgot to add intermediate.rs --- src/intermediate.rs | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/src/intermediate.rs b/src/intermediate.rs index d0bd460..92e9ffc 100644 --- a/src/intermediate.rs +++ b/src/intermediate.rs @@ -837,22 +837,26 @@ pub enum Primitive { impl std::fmt::Display for Primitive { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "{}", match self { - Primitive::Bool => "bool", - Primitive::F32 => "f32", - Primitive::F64 => "f64", - Primitive::U8 => "u8", - Primitive::I8 => "i8", - Primitive::U16 => "u16", - Primitive::I16 => "i16", - Primitive::U32 => "u32", - Primitive::I32 => "i32", - Primitive::U64 => "u64", - Primitive::I64 => "i64", - Primitive::N64 => "u64", - Primitive::Str => "String", - Primitive::Bytes => "Vec", - }) + write!( + f, + "{}", + match self { + Primitive::Bool => "bool", + Primitive::F32 => "f32", + Primitive::F64 => "f64", + Primitive::U8 => "u8", + Primitive::I8 => "i8", + Primitive::U16 => "u16", + Primitive::I16 => "i16", + Primitive::U32 => "u32", + Primitive::I32 => "i32", + Primitive::U64 => "u64", + Primitive::I64 => "i64", + Primitive::N64 => "u64", + Primitive::Str => "String", + Primitive::Bytes => "Vec", + } + ) } } // TODO: impl display or fmt or whatever rust uses