diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-01-14 12:34:17 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-01-14 12:34:17 +0100 |
| commit | ab03f3224078f1b8ca05bc1b65a7df4bebb5f449 (patch) | |
| tree | 968c8fff18863187d77fe0ce26a726aeddbca195 /src/util | |
| parent | 2589692b00d40fd5094ea2d5b9448e2cfc052045 (diff) | |
Reorganize syntax module
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 }) } |
