Remove allow(visible_private_types)

It's not needed and no longer supported by rustc anyway.