small changes to satisfy cargo clippy
Depends on D7595
cargo build
If we can borrow here, I think we should. Guess it doesn't really matter
contents is already a &str so the borrow is redundant, which clippy doesn't like