Browse Source

Fix warning when building site tests (#936)

For the site integration tests, we have a file of common code which is
used by multiple files in `tests/`.  However, not all functions in
this file are used by all files in `tests/`.

As Cargo compiles each `tests/*.rs` file as a separate crate, this
means that some of these crates end up with unused code.  Rust notices
this and prints a warning.

Let's tell Rust that we don't care about dead code in this file so
that the warning is not printed.
index-subcmd
Travis Cross Vincent Prouillet 4 years ago
parent
commit
983e021d5b
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      components/site/tests/common.rs

+ 1
- 0
components/site/tests/common.rs View File

@@ -1,3 +1,4 @@
#![allow(dead_code)]
use std::env; use std::env;
use std::path::PathBuf; use std::path::PathBuf;




Loading…
Cancel
Save