From cbb7152890113cd5a4762a3e2c237aba99683c85 Mon Sep 17 00:00:00 2001 From: Erin Date: Sat, 2 Jul 2022 12:55:10 +0200 Subject: [PATCH] No need for the associated type :D --- ablescript/src/host_interface.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ablescript/src/host_interface.rs b/ablescript/src/host_interface.rs index 740ce6e1..d8db0236 100644 --- a/ablescript/src/host_interface.rs +++ b/ablescript/src/host_interface.rs @@ -1,7 +1,5 @@ /// Host Environment Interface pub trait HostInterface { - type Data; - /// Print a string fn print(&mut self, string: &str, new_line: bool) -> std::io::Result<()>; @@ -19,8 +17,6 @@ pub trait HostInterface { #[derive(Clone, Copy, Default)] pub struct Standard; impl HostInterface for Standard { - type Data = (); - fn print(&mut self, string: &str, new_line: bool) -> std::io::Result<()> { use std::io::Write;