mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 08:37:56 +00:00
669e79181e
* no_std trie compile in test_runtime (require to set nightly feature due to the way hashbrown currently works). * No nightly with hashmap_core. * using crate elastic-array * switch to publish trie crates * fix default array decl * bump impl_version for ci * set all semver when possible wasm, and remove redundant code. * Actually test use_trie function * impl version +1 * Bump impl version
34 lines
826 B
Rust
34 lines
826 B
Rust
// Copyright 2015-2017 Parity Technologies
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
// option. This file may not be copied, modified, or distributed
|
|
// except according to those terms.
|
|
|
|
#[cfg(feature="std")]
|
|
use std::fmt;
|
|
#[cfg(feature="std")]
|
|
use std::error::Error as StdError;
|
|
|
|
#[derive(Debug, PartialEq, Eq, Clone)]
|
|
/// Error concerning the Parity-Codec based decoder.
|
|
pub enum Error {
|
|
/// Bad format.
|
|
BadFormat,
|
|
}
|
|
|
|
#[cfg(feature="std")]
|
|
impl StdError for Error {
|
|
fn description(&self) -> &str {
|
|
"codec error"
|
|
}
|
|
}
|
|
|
|
#[cfg(feature="std")]
|
|
impl fmt::Display for Error {
|
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
|
fmt::Debug::fmt(&self, f)
|
|
}
|
|
}
|