Skip to content

Commit 3a133f2

Browse files
committed
Transition linkchecker to 2018 edition
1 parent 2966fbc commit 3a133f2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/tools/linkchecker/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "linkchecker"
33
version = "0.1.0"
44
authors = ["Alex Crichton <[email protected]>"]
5+
edition = "2018"
56

67
[[bin]]
78
name = "linkchecker"

src/tools/linkchecker/main.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@
1414
//! A few whitelisted exceptions are allowed as there's known bugs in rustdoc,
1515
//! but this should catch the majority of "broken link" cases.
1616
17+
#![deny(rust_2018_idioms)]
18+
1719
use std::collections::hash_map::Entry;
1820
use std::collections::{HashMap, HashSet};
1921
use std::env;
2022
use std::fs;
2123
use std::path::{Path, PathBuf, Component};
2224
use std::rc::Rc;
2325

24-
use Redirect::*;
26+
use crate::Redirect::*;
2527

2628
macro_rules! t {
2729
($e:expr) => (match $e {

0 commit comments

Comments
 (0)