Working commit
This commit is contained in:
@@ -135,6 +135,11 @@ impl Registry {
|
||||
s
|
||||
}
|
||||
|
||||
pub fn preload<T: Type>(&mut self, _name: impl Display) -> &mut Self {
|
||||
self.include::<T>();
|
||||
self
|
||||
}
|
||||
|
||||
pub fn include<T: Type>(&mut self) -> &mut Self {
|
||||
self.types
|
||||
.insert(T::name().to_string())
|
||||
@@ -150,11 +155,6 @@ impl Registry {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn preload<T: Type>(&mut self, name: impl Display) -> &mut Self {
|
||||
self.include::<T>();
|
||||
self
|
||||
}
|
||||
|
||||
pub fn done(&self) -> String {
|
||||
self.to_string()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user