refactor: fix some clippy warnings

This commit is contained in:
Tobias Schmitz 2025-05-20 14:30:26 +02:00
parent 9350d14557
commit 0e8c2e080d
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ pub fn layout_image(
engine.world,
&families(styles).map(|f| f.as_str()).collect::<Vec<_>>(),
)
.in_text(&data)?,
.in_text(data)?,
),
};

View File

@ -63,7 +63,7 @@ impl Source {
/// The whole source as a string slice.
pub fn text(&self) -> &str {
&self.0.lines.text()
self.0.lines.text()
}
/// Slice out the part of the source code enclosed by the range.