diff --git a/ui/dr-ui/src/library.rs b/ui/dr-ui/src/library.rs index a4da903..d204e09 100644 --- a/ui/dr-ui/src/library.rs +++ b/ui/dr-ui/src/library.rs @@ -2904,7 +2904,9 @@ pub fn spawn_face_sweep( }; rt.block_on(async { - let backend = match NextcloudBackend::new(&creds, &user_id) { + // Through `remote::connect`, which is the only place in the + // interface that knows whose backend this is. + let backend = match crate::remote::connect(&creds, &user_id) { Ok(b) => b, Err(e) => { log::warn!("face sweep: {e}"); @@ -2931,7 +2933,7 @@ pub fn spawn_face_sweep( .collect(); let results = futures_join_all(lanes.into_iter().map(|lane| { - let backend = &backend; + let backend = &*backend; let models = ⊧ let options = &options; async move {