mirror of
https://github.com/typst/typst
synced 2025-08-24 03:34:14 +08:00
refactor: fix some clippy warnings
This commit is contained in:
parent
9350d14557
commit
0e8c2e080d
@ -65,7 +65,7 @@ pub fn layout_image(
|
|||||||
engine.world,
|
engine.world,
|
||||||
&families(styles).map(|f| f.as_str()).collect::<Vec<_>>(),
|
&families(styles).map(|f| f.as_str()).collect::<Vec<_>>(),
|
||||||
)
|
)
|
||||||
.in_text(&data)?,
|
.in_text(data)?,
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ impl Source {
|
|||||||
|
|
||||||
/// The whole source as a string slice.
|
/// The whole source as a string slice.
|
||||||
pub fn text(&self) -> &str {
|
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.
|
/// Slice out the part of the source code enclosed by the range.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user