diff options
| author | Laurenz <laurmaedje@gmail.com> | 2025-06-10 20:13:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-10 18:13:33 +0000 |
| commit | 98034903e4184708dbaf3cf6b23a4f4de5e910ec (patch) | |
| tree | 449ded5f9157587720ee6cdf656b18a121db4a74 /crates/typst-syntax/src/reparser.rs | |
| parent | a6ab6ac99a3db30d833f60e59959785f60fdc853 (diff) | |
Adjust source file API surface (#6423)
Diffstat (limited to 'crates/typst-syntax/src/reparser.rs')
| -rw-r--r-- | crates/typst-syntax/src/reparser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-syntax/src/reparser.rs b/crates/typst-syntax/src/reparser.rs index c20d8314..55555c96 100644 --- a/crates/typst-syntax/src/reparser.rs +++ b/crates/typst-syntax/src/reparser.rs @@ -259,10 +259,10 @@ mod tests { panic!("test failed"); } if incremental { - assert_ne!(source.len_bytes(), range.len(), "should have been incremental"); + assert_ne!(source.text().len(), range.len(), "should have been incremental"); } else { assert_eq!( - source.len_bytes(), + source.text().len(), range.len(), "shouldn't have been incremental" ); |
