ds-learn-rust 0.1.1

Code that I wrote while learning Rust from the Rust Book
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use ds_learn_rust::{run, Config};
use std::{env, process};

pub fn ch_12_01() {
    let config = Config::build(env::args()).unwrap_or_else(|x| {
        println!("Failed to parse config: {x}");
        process::exit(1);
    });
    if let Err(e) = run(config) {
        println!("Error: {e}");
        process::exit(1);
    };
}