Make BorrowedWithFontSystem borrow FontSystem mutably

This commit is contained in:
Edgar Geier 2023-03-12 10:30:09 +01:00
parent 057b5b6fa9
commit 46e9ef0246
No known key found for this signature in database
GPG key ID: DE2B55319457EB56
11 changed files with 37 additions and 31 deletions

View file

@ -40,7 +40,7 @@ fn main() {
)
.unwrap();
let font_system = FontSystem::new();
let mut font_system = FontSystem::new();
let syntax_system = SyntaxSystem::new();
@ -67,7 +67,7 @@ fn main() {
#[cfg(feature = "vi")]
let mut editor = cosmic_text::ViEditor::new(editor);
let mut editor = editor.borrow_with(&font_system);
let mut editor = editor.borrow_with(&mut font_system);
editor
.buffer_mut()