From ab03f3224078f1b8ca05bc1b65a7df4bebb5f449 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 14 Jan 2023 12:34:17 +0100 Subject: Reorganize syntax module --- src/util/eco.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') diff --git a/src/util/eco.rs b/src/util/eco.rs index 8f519504..dccb68a8 100644 --- a/src/util/eco.rs +++ b/src/util/eco.rs @@ -46,7 +46,7 @@ const LIMIT: usize = 14; impl EcoString { /// Create a new, empty string. - pub fn new() -> Self { + pub const fn new() -> Self { Self(Repr::Small { buf: [0; LIMIT], len: 0 }) } -- cgit v1.2.3