From 2a044d56d80805d14f73c2885747b3da4caf8b54 Mon Sep 17 00:00:00 2001 From: lijm1358 Date: Tue, 5 Oct 2021 00:28:55 +0900 Subject: [PATCH] fix deque repr to print correct format --- vm/src/stdlib/collections.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vm/src/stdlib/collections.rs b/vm/src/stdlib/collections.rs index ff5596d9e4..9dc49cff83 100644 --- a/vm/src/stdlib/collections.rs +++ b/vm/src/stdlib/collections.rs @@ -420,7 +420,12 @@ mod _collections { .maxlen .map(|maxlen| format!(", maxlen={}", maxlen)) .unwrap_or_default(); - format!("deque([{}]{})", elements.into_iter().format(", "), maxlen) + format!( + "{}([{}]{})", + zelf.class().name(), + elements.into_iter().format(", "), + maxlen + ) } else { "[...]".to_owned() };