refactor(autostart)!: rename ManagerExt::autolaunch to autostart (#3614)

* refactor(autostart)!: rename ManagerExt::autolaunch to autostart

* Apply suggestion from @amrbashir

---------

Co-authored-by: Amr Bashir <github@amrbashir.me>
This commit is contained in:
Lucas Fernandes Nogueira
2026-09-22 06:07:55 -03:00
committed by GitHub
co-authored by Amr Bashir
parent 0ecb30e3cb
commit 73ec7ed401
2 changed files with 8 additions and 4 deletions
+2 -4
View File
@@ -72,13 +72,11 @@ impl AutoLaunchManager {
}
pub trait ManagerExt<R: Runtime> {
/// TODO: Rename these to `autostart` or `auto_start` in v3
fn autolaunch(&self) -> State<'_, AutoLaunchManager>;
fn autostart(&self) -> State<'_, AutoLaunchManager>;
}
impl<R: Runtime, T: Manager<R>> ManagerExt<R> for T {
/// TODO: Rename these to `autostart` or `auto_start` in v3
fn autolaunch(&self) -> State<'_, AutoLaunchManager> {
fn autostart(&self) -> State<'_, AutoLaunchManager> {
self.state::<AutoLaunchManager>()
}
}