We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 723d75b commit 1026557Copy full SHA for 1026557
2 files changed
src/lib.rs
@@ -916,6 +916,7 @@ impl Clone for LeanString {
916
///
917
/// This ensures no memory leaks occur and all resources are properly cleaned up.
918
impl Drop for LeanString {
919
+ #[inline]
920
fn drop(&mut self) {
921
self.0.replace_inner(Repr::new());
922
}
src/repr.rs
@@ -412,6 +412,7 @@ impl Repr {
412
413
414
impl Drop for SetLenOnDrop<'_> {
415
416
417
// SAFETY:
418
// - `dst_idx <= src_idx`, and `src_idx <= len`, so `dst_idx <= len`.
0 commit comments