From f2988f8054ed03951c9ebf05b81b4719fa8eb861 Mon Sep 17 00:00:00 2001 From: RumovZ Date: Wed, 27 Apr 2022 18:34:29 +0200 Subject: [PATCH] =?UTF-8?q?take=5Ffields()=20=E2=86=92=20into=5Ffields()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rslib/src/import_export/package/apkg/import/notes.rs | 2 +- rslib/src/notes/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rslib/src/import_export/package/apkg/import/notes.rs b/rslib/src/import_export/package/apkg/import/notes.rs index 7435f3f5d..f3160158f 100644 --- a/rslib/src/import_export/package/apkg/import/notes.rs +++ b/rslib/src/import_export/package/apkg/import/notes.rs @@ -67,7 +67,7 @@ impl Note { LogNote { id: Some(self.id.into()), fields: self - .take_fields() + .into_fields() .into_iter() .map(|field| { strip_html_preserving_media_filenames(&field) diff --git a/rslib/src/notes/mod.rs b/rslib/src/notes/mod.rs index 55e2585bb..ed8ec29fa 100644 --- a/rslib/src/notes/mod.rs +++ b/rslib/src/notes/mod.rs @@ -55,7 +55,7 @@ impl Note { &self.fields } - pub fn take_fields(self) -> Vec { + pub fn into_fields(self) -> Vec { self.fields }