From 274afc7b3fbc339fc7827b47d35816e49e6149fa Mon Sep 17 00:00:00 2001 From: RumovZ Date: Wed, 27 Apr 2022 21:50:22 +0200 Subject: [PATCH] =?UTF-8?q?export=5Fcollection=5Fextracting=5Fmedia()=20?= =?UTF-8?q?=E2=86=92=20...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit export_into_collection_file() --- rslib/src/import_export/package/apkg/export.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/rslib/src/import_export/package/apkg/export.rs b/rslib/src/import_export/package/apkg/export.rs index e1c896622..5d54349d3 100644 --- a/rslib/src/import_export/package/apkg/export.rs +++ b/rslib/src/import_export/package/apkg/export.rs @@ -41,12 +41,8 @@ impl Collection { .path() .to_str() .ok_or_else(|| AnkiError::IoError("tempfile with non-unicode name".into()))?; - let data = self.export_collection_extracting_media( - temp_col_path, - search, - with_scheduling, - with_media, - )?; + let data = + self.export_into_collection_file(temp_col_path, search, with_scheduling, with_media)?; let media = if let Some(media_fn) = media_fn { media_fn(data.media_paths) @@ -72,7 +68,7 @@ impl Collection { Ok(data.notes.len()) } - fn export_collection_extracting_media( + fn export_into_collection_file( &mut self, path: &str, search: impl TryIntoSearch,