Skip to content

LazyUpdate::exec uses a &mut ref? #761

Description

@juliusl

Description

LazyUpdate has two exec fn's, exec and exec_mut. However it looks like their function signatures are identical?

specs/src/world/lazy.rs

Lines 303 to 305 in 81073f3

pub fn exec<F>(&self, f: F)
where
F: FnOnce(&mut World) + 'static,

specs/src/world/lazy.rs

Lines 337 to 339 in 81073f3

pub fn exec_mut<F>(&self, f: F)
where
F: FnOnce(&mut World) + 'static,

I was wondering what is the difference between the two?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions