Remove lifetime from SwashCache
This commit is contained in:
parent
2b991129e3
commit
4e93853765
10 changed files with 53 additions and 32 deletions
|
|
@ -59,7 +59,7 @@ fn main() {
|
|||
|
||||
let mut editor = Editor::new(buffer);
|
||||
|
||||
let mut swash_cache = SwashCache::new(&font_system);
|
||||
let mut swash_cache = SwashCache::new();
|
||||
|
||||
let text = if let Some(arg) = env::args().nth(1) {
|
||||
fs::read_to_string(&arg).expect("failed to open file")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue