i have removed a few things to reduce the code size:
pointless status code check:
__AMBER_STATUS=$?; # only useful line
if [ $__AMBER_STATUS != 0 ]; then # ???
: # ???
fi; # ???
``
variables like __AMBER_STATUS -> __AS
removing ; at the end of the line when its not required. kind of a micro optimization, but could save a few kilobytes on large project
those are pretty harmless optimizations, and all the cargo tests pass. i made sure that all hardcoded variables are renamed in the code. you can verify it via grep -n __VARIABLE_NAME $(git ls-files | grep -E \\.rs\$).
i have removed a few things to reduce the code size:
__AMBER_STATUS
->__AS
;
at the end of the line when its not required. kind of a micro optimization, but could save a few kilobytes on large projectthose are pretty harmless optimizations, and all the
cargo test
s pass. i made sure that all hardcoded variables are renamed in the code. you can verify it viagrep -n __VARIABLE_NAME $(git ls-files | grep -E \\.rs\$)
.