rustpotter detections optimization + few code improvements
This commit is contained in:
parent
612ed2f1b0
commit
a425d8f834
12 changed files with 64 additions and 58 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue