diff options
Diffstat (limited to 'mingling_core/src/renderer/structural')
| -rw-r--r-- | mingling_core/src/renderer/structural/error.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mingling_core/src/renderer/structural/error.rs b/mingling_core/src/renderer/structural/error.rs index 63ded81..2787dff 100644 --- a/mingling_core/src/renderer/structural/error.rs +++ b/mingling_core/src/renderer/structural/error.rs @@ -11,7 +11,7 @@ pub struct StructuralRendererSerializeError { impl StructuralRendererSerializeError { /// Creates a new `StructuralRendererSerializeError` with the given error message. #[must_use] - pub fn new(error: String) -> Self { + pub const fn new(error: String) -> Self { Self { error } } } |
