forked from mirrors/jj
matchers: don't allow dead_code
This commit is contained in:
parent
af185725a1
commit
9a83338079
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
#![allow(dead_code, missing_docs)]
|
#![allow(missing_docs)]
|
||||||
|
|
||||||
use std::collections::{HashMap, HashSet};
|
use std::collections::{HashMap, HashSet};
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
|
@ -369,6 +369,7 @@ impl RepoPathTree {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
fn add_dir(&mut self, dir: &RepoPath) {
|
fn add_dir(&mut self, dir: &RepoPath) {
|
||||||
self.add(dir).is_dir = true;
|
self.add(dir).is_dir = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue