Resolve 2024 edition migration warnings
This commit is contained in:
parent
4f725a05c9
commit
e7d23083b0
2 changed files with 4 additions and 2 deletions
|
|
@ -118,7 +118,7 @@ impl Text {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn widget<C: HasFontStuff>(self, font_stuff: &mut FontStuff) -> impl Widget<C> {
|
||||
pub fn widget<C: HasFontStuff>(self, font_stuff: &mut FontStuff) -> impl Widget<C> + use<C> {
|
||||
let fs = &mut font_stuff.font_system;
|
||||
let mut buffer = Buffer::new_empty(self.metrics);
|
||||
buffer.set_size(fs, f32::INFINITY, f32::INFINITY);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue