添加 configure() 注释

Signed-off-by: Jia Chao <jiachao2130@126.com>
This commit is contained in:
Jia Chao 2024-06-26 14:30:48 +08:00
parent bea65e445a
commit bd144d231f

View File

@ -9,6 +9,7 @@ pub mod rpm;
static CONFIGURE: Once = Once::new();
// 使用系统的默认配置
// 注意:必须先调用 config 才可进行后续操作
pub fn configure() {
CONFIGURE.call_once(|| {
config::read_file(None).unwrap();