Skip to content

Commit cea7c37

Browse files
committed
get and get_raw called only once
1 parent c84ebba commit cea7c37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/env/srml/srml_only/impls.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ impl<T> ReturnData<T>
8484
where
8585
T: Decode,
8686
{
87-
fn get() -> T {
87+
fn get(self) -> T {
8888
T::decode(&mut &read_scratch_buffer()[..]).unwrap()
8989
}
9090

91-
fn get_raw() -> Vec<u8> {
91+
fn get_raw(self) -> Vec<u8> {
9292
read_scratch_buffer()
9393
}
9494
}

0 commit comments

Comments
 (0)