write!() now returns std::result::Result