aboutsummaryrefslogtreecommitdiffstats
path: root/src/document
diff options
context:
space:
mode:
Diffstat (limited to 'src/document')
-rw-r--r--src/document/changes.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/document/changes.rs b/src/document/changes.rs
index 031dd0c..fd14a4e 100644
--- a/src/document/changes.rs
+++ b/src/document/changes.rs
@@ -4,7 +4,7 @@
use std::collections::{HashMap, HashSet};
-use anyhow::{Context, Result, anyhow, bail};
+use anyhow::{Result, anyhow, bail};
use super::{Change, ChangeHash, Document, ReadDoc};
@@ -173,6 +173,7 @@ pub(crate) fn delta_bytes(
/// downloads (`access::screen::apply_bytes`).
#[cfg(test)]
pub(crate) fn load_delta(doc: &mut Document, bytes: &[u8]) -> Result<()> {
+ use anyhow::Context as _;
if let Some(misplaced) = misplaced_author(bytes) {
bail!("Refused the downloaded changes: {misplaced}");
}