fix styling and hlint/-Wall warnings

Signed-off-by: Ricky Elrod <ricky@elrod.me>