fn on_submit_set(s: &mut Cursive, item: &str) {
    match item {
        "ar-dir" => ar_edit(s, item),
        "dl-dir" => dl_edit(s, item),
        "url" => url_edit(s, item),
        "log" => log_edit(s, item),
        _ => unreachable!("Item not found in list"),
    };
}
/// Matches then points to the correct settings dialog

Matches then points to the correct settings dialog
Matches then points to the correct settings dialog
fn on_submit_set(s: &mut Cursive, item: &str) {
    match item {
        "ar-dir" => ar_edit(s, item),
        "dl-dir" => dl_edit(s, item),
        "url" => url_edit(s, item),
        "log" => log_edit(s, item),
        _ => unreachable!("Item not found in list"),
    };
}
fn on_submit_set ( s : & mut Cursive , item : & str ) { match item { " " => ar_edit ( s , item ) , " " => dl_edit ( s , item ) , " " => url_edit ( s , item ) , " " => log_edit ( s , item ) , _ => unreachable ! ( " " ) , } ; }
Matches then points to the correct settings dialog
Matches then points to the correct settings dialog
s
&mut Cursive
item
&str
s
&mut Cursive
item
&str