Commit f1ffc600 authored by Andrew Jones's avatar Andrew Jones

rustfmt

parent dc191c48
Pipeline #69668 failed with stages
in 45 minutes and 27 seconds
......@@ -415,9 +415,9 @@ where
}
fn get_runtime_storage<I, R>(buffer: &mut I, key: &[u8]) -> Result<R>
where
I: AsMut<[u8]> + EnlargeTo,
R: scale::Decode,
where
I: AsMut<[u8]> + EnlargeTo,
R: scale::Decode,
{
let ret = ext::get_runtime_storage(key);
if !ret.is_success() {
......
......@@ -509,9 +509,9 @@ where
}
fn get_runtime_storage<I, R>(_buffer: &mut I, key: &[u8]) -> Result<R>
where
I: AsMut<[u8]> + EnlargeTo,
R: scale::Decode,
where
I: AsMut<[u8]> + EnlargeTo,
R: scale::Decode,
{
INSTANCE.with(|instance| {
let storage = &instance.borrow().state.storage;
......
......@@ -193,9 +193,9 @@ pub trait Env:
/// - If `key` associates no elements.
/// - If the element at `key` could not be decoded into `T`.
fn get_runtime_storage<I, T>(buffer: &mut I, key: &[u8]) -> Result<T>
where
I: AsMut<[u8]> + EnlargeTo,
T: scale::Decode;
where
I: AsMut<[u8]> + EnlargeTo,
T: scale::Decode;
}
/// Implemented by event types to communicate their topic hashes.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment