fn escape_spaces(w: &str) -> String {
    if w.contains(' ') {
        format!("\"{}\"", w)
    } else {
        w.to_string()
    }
}
/// This quotes strings with spaces. This doesn't handle strings with
/// quotes in any way: there doesn't seem to a way to escape them.
This quotes strings with spaces. This doesn't handle strings with
quotes in any way: there doesn't seem to a way to escape them.
This quotes strings with spaces . This doesn ' t handle strings with quotes in any way : there doesn ' t seem to a way to escape them .
fn escape_spaces(w: &str) -> String {
    if w.contains(' ') {
        format!("\"{}\"", w)
    } else {
        w.to_string()
    }
}
fn escape_spaces ( w : & str ) -> String { if w . contains ( ' ' ) { format ! ( " \" \" " w ) } else { w . to_string ( ) } }
This quotes strings with spaces.
This quotes strings with spaces .
w
&str