Skip to content

Commit

Permalink
Backport nls crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jneem committed Dec 19, 2024
1 parent 7236f8e commit 3dc84af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl Files {
// This implementation would be a little nicer if `Vector` supported mutable access.
// unwrap: we're allowed to panic if file_id is invalid
let mut old = self.get(file_id).unwrap().clone();
old.source = source.into();
old = File::new(old.name, source);
self.files.set(file_id.0 as usize, old);
}

Expand Down

0 comments on commit 3dc84af

Please sign in to comment.