Skip to content

Commit aee3890

Browse files
committed
refactor: Remove unnecessary comments from ZString::new_persistent method
1 parent efbb5cc commit aee3890

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

phper/src/enums.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use crate::{
2626
errors::Throwable,
2727
functions::{Function, FunctionEntry, HandlerMap, MethodEntity},
2828
objects::ZObj,
29-
strings::{ZStr, ZString},
29+
strings::ZString,
3030
sys::*,
3131
types::Scalar,
3232
utils::ensure_end_with_zero,
@@ -37,7 +37,7 @@ use std::{
3737
cell::RefCell,
3838
ffi::{CStr, CString},
3939
marker::PhantomData,
40-
mem::{ManuallyDrop, MaybeUninit, zeroed},
40+
mem::{ManuallyDrop, zeroed},
4141
ptr::{null, null_mut},
4242
rc::Rc,
4343
};

phper/src/strings.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,6 @@ impl ZString {
195195
}
196196

197197
/// Creates a new persistent zend string from a container of bytes.
198-
///
199-
/// Persistent strings will remain in memory until the PHP process
200-
/// terminates.
201198
#[allow(clippy::useless_conversion)]
202199
pub fn new_persistent(s: impl AsRef<[u8]>) -> Self {
203200
unsafe {

0 commit comments

Comments
 (0)