chore: fix warnings

This commit is contained in:
appflowy
2022-07-06 11:59:05 +08:00
parent 5b504740ef
commit 3845a75d61
11 changed files with 40 additions and 42 deletions

View File

@ -28,7 +28,7 @@ macro_rules! impl_def_and_def_mut {
impl $target {
#[allow(dead_code)]
pub fn into_inner(&mut self) -> Vec<$item> {
::std::mem::replace(&mut self.items, vec![])
::std::mem::take(&mut self.items)
}
#[allow(dead_code)]