rustpotter detections optimization + few code improvements

This commit is contained in:
Priler 2026-01-04 06:14:05 +05:00
parent 612ed2f1b0
commit a425d8f834
12 changed files with 64 additions and 58 deletions

View file

@ -17,7 +17,7 @@ static STREAM_HANDLE: OnceCell<OutputStream> = OnceCell::new();
static SINK: OnceCell<Sink> = OnceCell::new();
pub fn init() -> Result<(), ()> {
if !STREAM_HANDLE.get().is_none() {
if STREAM_HANDLE.get().is_some() {
return Ok(());
} // already initialized