No need for the associated type :D

trunk v0.5.0
ondra05 2022-07-02 12:55:10 +02:00
parent 96fdac10a4
commit 70d6bf661f
1 changed files with 0 additions and 4 deletions

View File

@ -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;