Resolve 2024 edition migration warnings
This commit is contained in:
parent
4f725a05c9
commit
e7d23083b0
2 changed files with 4 additions and 2 deletions
|
|
@ -54,7 +54,9 @@ rust.unused_lifetimes = "warn"
|
|||
rust.unused_qualifications = "warn"
|
||||
# Clippy
|
||||
clippy.use_self = "warn"
|
||||
|
||||
# Migrating to the 2024 edition
|
||||
rust.rust_2024_compatibility = "warn"
|
||||
rust.tail_expr_drop_order = { level = "allow", priority = 1 }
|
||||
|
||||
# Optimize dependencies in debug mode (mainly for faster image exports).
|
||||
# Does not apply to workspace members, only "real" dependencies.
|
||||
|
|
|
|||
|
|
@ -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