From e0eb286ae5257ba19bd3b431faca2604fd78bf69 Mon Sep 17 00:00:00 2001 From: shenjack-5600u <3695888@qq.com> Date: Mon, 29 Jan 2024 11:53:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E7=82=B9=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.rs b/src/utils.rs index af43b05..fc98158 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -114,12 +114,14 @@ pub fn avro_data_to_file_list(data: Vec) -> Option> { #[macro_export] macro_rules! fatal { + // 正常输入两组信息 (($($arg1:tt)+), ($($arg2:tt)+)) => { use log::error; // error!() + panic!() error!($($arg1)+); panic!($($arg2)+); }; + // 如果只输入了一组 ($($arg:tt)+) => { use log::error; // error!() + panic!()