Fixed two errors: unknown format trait and create missing

I've just fixed a couple of errors I got when updating rust.