pub fn detect_separator(text: &str) -> char {
const DELIMITERS: &[char] = &['|', '\t', ','];
text.chars()
.find(|candidates| DELIMITERS.contains(candidates))
.unwrap_or(',') }
pub fn scrub(bytes: &[u8]) -> String {
String::from_utf8_lossy(bytes)
.replace(['\u{feff}', '\0'], "") .replace("\r\n", "\n") .replace('\r', "\n") }