Fix compilation of sp-authorship (#4337)

This commit is contained in:
Bastian Köcher
2019-12-09 21:18:29 +01:00
committed by Gavin Wood
parent e5b6935c2a
commit a868fcbbbf
2 changed files with 9 additions and 8 deletions
+3 -3
View File
@@ -22,13 +22,13 @@ use rstd::{result::Result, prelude::*};
use codec::{Encode, Decode};
use sp_inherents::{Error, InherentIdentifier, InherentData, IsFatalError};
use sr_primitives::RuntimeString;
use sp_runtime::RuntimeString;
/// The identifier for the `uncles` inherent.
pub const INHERENT_IDENTIFIER: InherentIdentifier = *b"uncles00";
/// Errors that can occur while checking the authorship inherent.
#[derive(Encode, sr_primitives::RuntimeDebug)]
#[derive(Encode, sp_runtime::RuntimeDebug)]
#[cfg_attr(feature = "std", derive(Decode))]
pub enum InherentError {
Uncles(RuntimeString),
@@ -88,4 +88,4 @@ where F: Fn() -> Vec<H>
fn error_to_string(&self, _error: &[u8]) -> Option<String> {
Some(format!("no further information"))
}
}
}