From 7cd1c626b7a908081e39e4c144c05e8dbaad46e5 Mon Sep 17 00:00:00 2001 From: Weny Xu Date: Tue, 20 Feb 2024 23:44:18 +0900 Subject: [PATCH] refactor: move downcast_output_ref under cfg(test) --- src/common/procedure/src/procedure.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/procedure/src/procedure.rs b/src/common/procedure/src/procedure.rs index 9cdc13867351..b46428eb6860 100644 --- a/src/common/procedure/src/procedure.rs +++ b/src/common/procedure/src/procedure.rs @@ -57,6 +57,7 @@ impl Status { Status::Done { output: None } } + #[cfg(any(test, feature = "testing"))] /// Downcasts [Status::Done]'s output to &T /// #Panic: /// - if [Status] is not the [Status::Done].