浏览代码

init_by_env should be public

Kaiyin Zhong 5 年之前
父节点
当前提交
ffb11dd2d5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/lib.rs

+ 1 - 1
src/lib.rs

@@ -141,7 +141,7 @@ pub fn init() -> Result<(), SetLoggerError> {
 /// warn!("This is an example message.");
 /// warn!("This is an example message.");
 /// # }
 /// # }
 /// ```
 /// ```
-fn init_by_env() {
+pub fn init_by_env() {
     match std::env::var("RUST_LOG") {
     match std::env::var("RUST_LOG") {
         Ok(x) => {
         Ok(x) => {
             match x.to_lowercase().as_str() {
             match x.to_lowercase().as_str() {