Typo in [ScheduleLabel] derive macro (#11764)

[`ScheduleLabel`] derive macro uses "ScheduleName" as the trait name by
mistake. This only affects the error message when a user tries to use
the derive macro on a union type. No other code is affected.
This commit is contained in:
Turki Al-Marri 2024-02-07 23:06:40 +03:00 committed by GitHub
parent c33b8b92c0
commit ff77adc045
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -478,7 +478,7 @@ pub fn derive_schedule_label(input: TokenStream) -> TokenStream {
.segments
.push(format_ident!("ScheduleLabel").into());
dyn_eq_path.segments.push(format_ident!("DynEq").into());
derive_label(input, "ScheduleName", &trait_path, &dyn_eq_path)
derive_label(input, "ScheduleLabel", &trait_path, &dyn_eq_path)
}
/// Derive macro generating an impl of the trait `SystemSet`.