Skip to content

Commit 34269d0

Browse files
committed
Auto merge of #2393 - WiSaGaN:bugfix/tests-mod-naming, r=alexcrichton
In the default `lib.rs` provided by `cargo-new`, the "test" module is named "test" while Rust convention is using "tests" as the name of the module: https://doc.rust-lang.org/book/testing.html#the-tests-module The plural form also conforms with the style used in special directories at project root such as "examples" and "tests". This pull request conforms to the existing style.
2 parents b8d274f + 32defb9 commit 34269d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/ops/cargo_new.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ fn main() {
414414
} else {
415415
b"\
416416
#[cfg(test)]
417-
mod test {
417+
mod tests {
418418
#[test]
419419
fn it_works() {
420420
}

0 commit comments

Comments
 (0)