fix(ci): add missing const fn (#8822)

This commit is contained in:
joshieDo
2024-06-14 12:07:39 +02:00
committed by GitHub
parent bc15e6c03a
commit fc770423b3
34 changed files with 40 additions and 40 deletions

View File

@ -20,7 +20,7 @@ pub struct GracefulShutdown {
}
impl GracefulShutdown {
pub(crate) fn new(shutdown: Shutdown, guard: GracefulShutdownGuard) -> Self {
pub(crate) const fn new(shutdown: Shutdown, guard: GracefulShutdownGuard) -> Self {
Self { shutdown, guard: Some(guard) }
}