From 34619a81253b1e9491a86e1df7dd42e4579cbe90 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= <tseeker@nocternity.net>
Date: Mon, 2 Jan 2023 17:40:06 +0100
Subject: [PATCH] Interpreter - Callable extends Debug and ToString

---
 src/interpreter/callable.rs | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/interpreter/callable.rs b/src/interpreter/callable.rs
index c82922d..ab55270 100644
--- a/src/interpreter/callable.rs
+++ b/src/interpreter/callable.rs
@@ -1,5 +1,11 @@
+use std::fmt::Debug;
+
+use crate::errors::InterpreterError;
+
+use super::{Environment, Value};
+
 /// A callable is some object that supports being called.
-pub trait Callable {
+pub trait Callable: Debug + ToString {
     /// Return the amount of arguments supported by the callable.
     fn arity(&self) -> usize;