take_fields() → into_fields()

This commit is contained in:
RumovZ 2022-04-27 18:34:29 +02:00
parent 969484de43
commit f2988f8054
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ impl Note {
LogNote { LogNote {
id: Some(self.id.into()), id: Some(self.id.into()),
fields: self fields: self
.take_fields() .into_fields()
.into_iter() .into_iter()
.map(|field| { .map(|field| {
strip_html_preserving_media_filenames(&field) strip_html_preserving_media_filenames(&field)

View file

@ -55,7 +55,7 @@ impl Note {
&self.fields &self.fields
} }
pub fn take_fields(self) -> Vec<String> { pub fn into_fields(self) -> Vec<String> {
self.fields self.fields
} }