refactor: clean up imports and enhance error handling

- Remove multiple unused imports
- Change `is_running` to return `!bool`
- Update `is_running` calls to handle result type
This commit is contained in:
Mahmoud-Emad
2025-09-02 19:27:18 +03:00
parent 03935c3637
commit 1bd91cd51a
7 changed files with 4 additions and 15 deletions

View File

@@ -1,8 +1,6 @@
module encoderhero
import time
import freeflowuniverse.herolib.data.paramsparser
import freeflowuniverse.herolib.core.texttools
pub struct Decoder[T] {
pub mut:

View File

@@ -4,7 +4,6 @@ import freeflowuniverse.herolib.data.paramsparser
import time
import v.reflection
import freeflowuniverse.herolib.data.ourtime
import freeflowuniverse.herolib.core.texttools
// import freeflowuniverse.herolib.ui.console
// Encoder encodes the an `Any` type into HEROSCRIPT representation.

View File

@@ -1,7 +1,5 @@
module encoderhero
import time
// byte array versions of the most common tokens/chars to avoid reallocations
const null_in_bytes = 'null'