Make DefaultByte implement Send + Sync (#3333)

* Make `DefaultByte` implement `Send + Sync`

* Update runtime version.
This commit is contained in:
Bastian Köcher
2019-08-08 00:10:36 +02:00
committed by David Craven
parent 46709e8381
commit ea58b7c92a
4 changed files with 16 additions and 2 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ pub struct ModuleConstantMetadata {
}
/// A technical trait to store lazy initiated vec value as static dyn pointer.
pub trait DefaultByte {
pub trait DefaultByte: Send + Sync {
fn default_byte(&self) -> Vec<u8>;
}