Skip to content

Commit 2c34d58

Browse files
committed
Store deprecated lints as an array of tuples.
Remove legacy deprecations. Remove "View Source" link for deprecated lints.
1 parent 1672d5d commit 2c34d58

20 files changed

+547
-946
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5830,6 +5830,7 @@ Released 2018-09-13
58305830
[`result_unit_err`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
58315831
[`result_unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_unwrap_used
58325832
[`return_self_not_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
5833+
[`reverse_range_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#reverse_range_loop
58335834
[`reversed_empty_ranges`]: https://rust-lang.github.io/rust-clippy/master/index.html#reversed_empty_ranges
58345835
[`same_functions_in_if_condition`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_functions_in_if_condition
58355836
[`same_item_push`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_item_push

clippy_dev/src/serve.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ use std::process::Command;
33
use std::time::{Duration, SystemTime};
44
use std::{env, thread};
55

6+
#[cfg(windows)]
7+
const PYTHON: &str = "python";
8+
9+
#[cfg(not(windows))]
10+
const PYTHON: &str = "python3";
11+
612
/// # Panics
713
///
814
/// Panics if the python commands could not be spawned
@@ -23,7 +29,7 @@ pub fn run(port: u16, lint: Option<String>) -> ! {
2329
}
2430
if let Some(url) = url.take() {
2531
thread::spawn(move || {
26-
Command::new("python3")
32+
Command::new(PYTHON)
2733
.arg("-m")
2834
.arg("http.server")
2935
.arg(port.to_string())

0 commit comments

Comments
 (0)