瀏覽代碼

make emacs happy (spaces as indents)

does anyone know how to detect this from the style used in the file?
it's kind of annoying...
Lucas Stadler 10 年之前
父節點
當前提交
67b0a7f659
共有 1 個文件被更改,包括 13 次插入13 次删除
  1. 13 13
      rust/solve/src/main.rs

+ 13 - 13
rust/solve/src/main.rs

@ -16,17 +16,17 @@ use std::io::Read;
16 16
use solve::cnf;
17 17
18 18
fn main() {
19
	let input: &mut String = &mut String::new();
20
	match io::stdin().read_to_string(input) {
21
		Ok(_) => match cnf::parse_dimac(input) {
22
			Ok(cnf) => {
23
				println!("cnf has {} variables and {} clauses", cnf.num_vars, cnf.num_clauses);
24
				for clause in cnf.clauses {
25
					println!("{:?}", clause);
26
				}
27
			}
28
			Err(e) => { println!("Error: {}", e) }
29
		},
30
			Err(e) => { println!("Error: {}", e) }
31
	}
19
    let input: &mut String = &mut String::new();
20
    match io::stdin().read_to_string(input) {
21
	Ok(_) => match cnf::parse_dimac(input) {
22
	    Ok(cnf) => {
23
		println!("cnf has {} variables and {} clauses", cnf.num_vars, cnf.num_clauses);
24
		for clause in cnf.clauses {
25
		    println!("{:?}", clause);
26
		}
27
	    }
28
	    Err(e) => { println!("Error: {}", e) }
29
	},
30
	Err(e) => { println!("Error: {}", e) }
31
    }
32 32
}