consider strings

This commit is contained in:
Folkert 2020-09-14 01:55:23 +02:00
parent 9746e9f240
commit d093f056b7

View file

@ -219,6 +219,8 @@ fn get_inplace_from_layout(layout: &Layout<'_>) -> InPlace {
MemoryMode::Unique => InPlace::InPlace,
MemoryMode::Refcounted => InPlace::Clone,
},
Layout::Builtin(Builtin::EmptyStr) => InPlace::InPlace,
Layout::Builtin(Builtin::Str) => InPlace::Clone,
_ => unreachable!("Layout {:?} does not have an inplace", layout),
}
}