diff options
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/eco.rs | 2 |
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 }) } |
