Skip to content

Commit

Permalink
Tweak the new project template to be more idiomatic.
Browse files Browse the repository at this point in the history
  • Loading branch information
nrc committed Dec 31, 2015
1 parent 08da2f5 commit 93f76a8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cargo/ops/cargo_new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,11 @@ fn main() {
"));
} else {
try!(paths::write(&path.join("src/lib.rs"), b"\
#[test]
fn it_works() {
#[cfg(test)]
mod test {
#[test]
fn it_works() {
}
}
"));
}
Expand Down

0 comments on commit 93f76a8

Please sign in to comment.