diff --git a/crates/fuse-parser/src/lexer/source.rs b/crates/fuse-parser/src/lexer/source.rs index 264f2b8..d14c903 100644 --- a/crates/fuse-parser/src/lexer/source.rs +++ b/crates/fuse-parser/src/lexer/source.rs @@ -26,7 +26,7 @@ impl<'a> Source<'a> { assert!( src.len() <= crate::MAX_SOURCE_SIZE, "Input source code can not be larger than {} bytes.", - src.len() + crate::MAX_SOURCE_SIZE ); let start = src.as_ptr(); // SAFETY: Start of source + length of it gives us the end pointer.