summaryrefslogtreecommitdiff
path: root/src/model/func.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-21 16:49:26 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-21 17:11:40 +0100
commitc28d2130ddda3ae9b25cc16c3015087990ccb6e9 (patch)
tree71954529366fd10bbaa42b945eccd9cacba5964f /src/model/func.rs
parent1d7e082d1d83d4c7e454a2d08258794d716aea1a (diff)
Don't display functions
Diffstat (limited to 'src/model/func.rs')
-rw-r--r--src/model/func.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/func.rs b/src/model/func.rs
index 21e36784..cb4f5280 100644
--- a/src/model/func.rs
+++ b/src/model/func.rs
@@ -141,8 +141,8 @@ impl Func {
impl Debug for Func {
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
match self.name() {
- Some(name) => f.write_str(name),
- None => f.write_str("(..) => {..}"),
+ Some(name) => write!(f, "<function {name}>"),
+ None => f.write_str("<function>"),
}
}
}