(mut file: T, comma: &mut bool)
| 4 | use arcstr::ArcStr; |
| 5 | |
| 6 | pub fn write_comma_io<T>(mut file: T, comma: &mut bool) -> io::Result<()> |
| 7 | where T: io::Write { |
| 8 | if *comma { |
| 9 | file.write_all(b",")?; |
| 10 | } |
| 11 | *comma = true; |
| 12 | Ok(()) |
| 13 | } |
| 14 | |
| 15 | pub fn write_comma_fmt<T>(mut file: T, comma: &mut bool) -> fmt::Result |
| 16 | where T: fmt::Write { |
no outgoing calls
no test coverage detected