aboutsummaryrefslogtreecommitdiff
path: root/lib/xixanta
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xixanta')
-rw-r--r--lib/xixanta/src/object.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xixanta/src/object.rs b/lib/xixanta/src/object.rs
index b263469..6209afd 100644
--- a/lib/xixanta/src/object.rs
+++ b/lib/xixanta/src/object.rs
@@ -420,7 +420,7 @@ impl Context {
let mut ax = String::with_capacity(name.len());
// Clear the context stack as we will set it manually.
- self.stack.truncate(0);
+ self.stack.clear();
// If the given name turns out to be just the global one, skip the push
// for the stack.