Skip to content

Commit aad5891

Browse files
committed
Workaround for a deprecation in error_chain!
1 parent bc74eb4 commit aad5891

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

src/download/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use std::path::Path;
44
use url::Url;
55

6+
#[allow(deprecated)] // WORKAROUND https://github.com/rust-lang-nursery/error-chain/issues/254
67
mod errors;
78
pub use crate::errors::*;
89

src/rustup-cli/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
mod log;
1919
mod common;
2020
mod download_tracker;
21+
#[allow(deprecated)] // WORKAROUND https://github.com/rust-lang-nursery/error-chain/issues/254
2122
mod errors;
2223
mod help;
2324
mod job;

src/rustup-dist/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pub mod component;
99
pub mod config;
1010
pub mod dist;
1111
pub mod download;
12+
#[allow(deprecated)] // WORKAROUND https://github.com/rust-lang-nursery/error-chain/issues/254
1213
pub mod errors;
1314
pub mod manifest;
1415
pub mod manifestation;

src/rustup-utils/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![recursion_limit = "1024"] // for error_chain!
22

3+
#[allow(deprecated)] // WORKAROUND https://github.com/rust-lang-nursery/error-chain/issues/254
34
pub mod errors;
45
pub mod notifications;
56
pub mod raw;

src/rustup/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ fn component_for_bin(binary: &str) -> Option<&'static str> {
5050
pub mod command;
5151
mod config;
5252
pub mod env_var;
53+
#[allow(deprecated)] // WORKAROUND https://github.com/rust-lang-nursery/error-chain/issues/254
5354
mod errors;
5455
mod install;
5556
mod notifications;

0 commit comments

Comments
 (0)