Update to glycin 2.0 alpha.7

This commit is contained in:
Sophie Herold 2025-07-07 22:18:36 +02:00
parent 1b0b68c773
commit b3d972c5c3
8 changed files with 62 additions and 29 deletions

View file

@ -60,7 +60,7 @@ impl Queue {
async fn apply(&self, image: LpImage) -> anyhow::Result<()> {
let file = image.file().unwrap();
#[allow(unused_mut)]
let editor = glycin::Editor::new(file.clone());
let editor = glycin::Editor::new(file.clone()).edit().await?;
let mut list = Vec::new();
self.operations.rcu(|current_operations| {
@ -69,7 +69,7 @@ impl Queue {
});
let operations = Operations::new(list);
let edit_instruction = editor.apply_sparse(operations).await?;
let edit_instruction = editor.apply_sparse(&operations).await?;
if edit_instruction.apply_to(file).await? == EditOutcome::Unchanged {
log::warn!("Writing new files is not supported yet");