~irimi1/learning-rust

0575a5641a53cd61e05dd191f5503aacdd75acd0 — Manuel Groß 2 years ago 0330a7b
minigrep: Remove obsolete printlns
2 files changed, 0 insertions(+), 5 deletions(-)

M projects/minigrep/src/lib.rs
M projects/minigrep/src/main.rs
M projects/minigrep/src/lib.rs => projects/minigrep/src/lib.rs +0 -2
@@ 4,8 4,6 @@ use std::fs;
pub fn run(config: Config) -> Result<(), Box<dyn Error>> {
    let contents = fs::read_to_string(config.filename)?;

    println!("With text:\n{}", contents);

    Ok(())
}


M projects/minigrep/src/main.rs => projects/minigrep/src/main.rs +0 -3
@@ 11,9 11,6 @@ fn main() {
        process::exit(1);
    });

    println!("Searching for {}", config.query);
    println!("In file {}", config.filename);

    if let Err(e) = minigrep::run(config) {
        println!("Application error: {}", e);
        process::exit(1);