Skip to content

Commit 32f87e0

Browse files
committed
Store deprecated lints as an array of tuples.
Remove legacy deprecations. Remove "View Source" link for deprecated lints.
1 parent 9144521 commit 32f87e0

20 files changed

+663
-992
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
@@ -5,6 +5,12 @@ use std::process::Command;
55
use std::time::{Duration, SystemTime};
66
use std::{env, thread};
77

8+
#[cfg(windows)]
9+
const PYTHON: &str = "python";
10+
11+
#[cfg(not(windows))]
12+
const PYTHON: &str = "python3";
13+
814
/// # Panics
915
///
1016
/// Panics if the python commands could not be spawned
@@ -25,7 +31,7 @@ pub fn run(port: u16, lint: Option<String>) -> ! {
2531
}
2632
if let Some(url) = url.take() {
2733
thread::spawn(move || {
28-
Command::new("python3")
34+
Command::new(PYTHON)
2935
.arg("-m")
3036
.arg("http.server")
3137
.arg(port.to_string())

0 commit comments

Comments
 (0)