mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(ci): add missing const fn (#8822)
This commit is contained in:
@ -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) }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user