fix: format and some clippy warnings