Silence Error::cause deprecations (#10438)
This commit is contained in:
parent
ed18c7b54c
commit
97cb010df8
@ -70,6 +70,10 @@ pub const DEFAULT_NUM_CONSECUTIVE_FAILED_REQUESTS: usize = 1;
|
|||||||
|
|
||||||
/// OnDemand related errors
|
/// OnDemand related errors
|
||||||
pub mod error {
|
pub mod error {
|
||||||
|
// Silence: `use of deprecated item 'std::error::Error::cause': replaced by Error::source, which can support downcasting`
|
||||||
|
// https://github.com/paritytech/parity-ethereum/issues/10302
|
||||||
|
#![allow(deprecated)]
|
||||||
|
|
||||||
use futures::sync::oneshot::Canceled;
|
use futures::sync::oneshot::Canceled;
|
||||||
|
|
||||||
error_chain! {
|
error_chain! {
|
||||||
|
@ -14,6 +14,10 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Parity Ethereum. If not, see <http://www.gnu.org/licenses/>.
|
// along with Parity Ethereum. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
// Silence: `use of deprecated item 'std::error::Error::cause': replaced by Error::source, which can support downcasting`
|
||||||
|
// https://github.com/paritytech/parity-ethereum/issues/10302
|
||||||
|
#![allow(deprecated)]
|
||||||
|
|
||||||
use ethereum_types::Address;
|
use ethereum_types::Address;
|
||||||
use rlp::DecoderError;
|
use rlp::DecoderError;
|
||||||
use ethtrie::TrieError;
|
use ethtrie::TrieError;
|
||||||
|
@ -14,6 +14,10 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Parity Ethereum. If not, see <http://www.gnu.org/licenses/>.
|
// along with Parity Ethereum. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
// Silence: `use of deprecated item 'std::error::Error::cause': replaced by Error::source, which can support downcasting`
|
||||||
|
// https://github.com/paritytech/parity-ethereum/issues/10302
|
||||||
|
#![allow(deprecated)]
|
||||||
|
|
||||||
use ethcore;
|
use ethcore;
|
||||||
use io;
|
use io;
|
||||||
use ethcore_private_tx;
|
use ethcore_private_tx;
|
||||||
|
@ -16,6 +16,10 @@
|
|||||||
|
|
||||||
//! General error types for use in ethcore.
|
//! General error types for use in ethcore.
|
||||||
|
|
||||||
|
// Silence: `use of deprecated item 'std::error::Error::cause': replaced by Error::source, which can support downcasting`
|
||||||
|
// https://github.com/paritytech/parity-ethereum/issues/10302
|
||||||
|
#![allow(deprecated)]
|
||||||
|
|
||||||
use std::{fmt, error};
|
use std::{fmt, error};
|
||||||
use std::time::SystemTime;
|
use std::time::SystemTime;
|
||||||
|
|
||||||
|
@ -14,6 +14,10 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Parity Ethereum. If not, see <http://www.gnu.org/licenses/>.
|
// along with Parity Ethereum. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
// Silence: `use of deprecated item 'std::error::Error::cause': replaced by Error::source, which can support downcasting`
|
||||||
|
// https://github.com/paritytech/parity-ethereum/issues/10302
|
||||||
|
#![allow(deprecated)]
|
||||||
|
|
||||||
use std::{io, net, fmt};
|
use std::{io, net, fmt};
|
||||||
use libc::{ENFILE, EMFILE};
|
use libc::{ENFILE, EMFILE};
|
||||||
use io::IoError;
|
use io::IoError;
|
||||||
|
Loading…
Reference in New Issue
Block a user