summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-01-14 12:34:17 +0100
committerLaurenz <laurmaedje@gmail.com>2023-01-14 12:34:17 +0100
commitab03f3224078f1b8ca05bc1b65a7df4bebb5f449 (patch)
tree968c8fff18863187d77fe0ce26a726aeddbca195 /src/util
parent2589692b00d40fd5094ea2d5b9448e2cfc052045 (diff)
Reorganize syntax module
Diffstat (limited to 'src/util')
-rw-r--r--src/util/eco.rs2
1 files changed, 1 insertions, 1 deletions
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 })
}