添加 configure() 注释
Signed-off-by: Jia Chao <jiachao2130@126.com>
This commit is contained in:
parent
bea65e445a
commit
bd144d231f
|
@ -9,6 +9,7 @@ pub mod rpm;
|
||||||
static CONFIGURE: Once = Once::new();
|
static CONFIGURE: Once = Once::new();
|
||||||
|
|
||||||
// 使用系统的默认配置
|
// 使用系统的默认配置
|
||||||
|
// 注意:必须先调用 config 才可进行后续操作
|
||||||
pub fn configure() {
|
pub fn configure() {
|
||||||
CONFIGURE.call_once(|| {
|
CONFIGURE.call_once(|| {
|
||||||
config::read_file(None).unwrap();
|
config::read_file(None).unwrap();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user