lib: code reformatting