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:
@@ -1,8 +1,6 @@
|
||||
module encoderhero
|
||||
|
||||
import time
|
||||
import freeflowuniverse.herolib.data.paramsparser
|
||||
import freeflowuniverse.herolib.core.texttools
|
||||
|
||||
pub struct Decoder[T] {
|
||||
pub mut:
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user