forked from Orchid/orchid
Cut down on macro nonsense
- InertAtomic replaced atomic_inert! for improved tooling support - atomic_defaults! is easier to type out than to explain in a docstring - Changed rustfmt config to better support tiny functions such as as_any
This commit is contained in:
@@ -23,9 +23,7 @@ pub struct Environment<'a> {
|
||||
}
|
||||
impl<'a> Environment<'a> {
|
||||
/// Initialize a new environment
|
||||
pub fn new(i: &'a Interner) -> Self {
|
||||
Self { i, systems: Vec::new() }
|
||||
}
|
||||
pub fn new(i: &'a Interner) -> Self { Self { i, systems: Vec::new() } }
|
||||
|
||||
/// Register a new system in the environment
|
||||
pub fn add_system<'b: 'a>(mut self, is: impl IntoSystem<'b> + 'b) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user