Rename cx.global_default_mut to cx.global_default

This commit is contained in:
Marshall Bowers 2023-10-24 17:58:14 +02:00
parent 4ca7ddfc42
commit d6bd000aa8
14 changed files with 52 additions and 50 deletions

View file

@ -554,7 +554,7 @@ impl AppContext {
.unwrap()
}
pub fn default_global_mut<G: 'static + Default + Sync + Send>(&mut self) -> &mut G {
pub fn default_global<G: 'static + Default + Sync + Send>(&mut self) -> &mut G {
let global_type = TypeId::of::<G>();
self.push_effect(Effect::NotifyGlobalObservers { global_type });
self.globals_by_type