Fix a typo in fmt.rs
Fix wrong type name: IoError<()> -> IoResult<()>
auto merge of #15174 : alco/rust/patch-1, r=alexcrichton