lib: fix code style