Use new crate attribute syntax
Remove priv statements

priv is the new default visibility.