diff --git a/ica-rs/src/py/class.rs b/ica-rs/src/py/class.rs index bc6268b..548303a 100644 --- a/ica-rs/src/py/class.rs +++ b/ica-rs/src/py/class.rs @@ -48,27 +48,28 @@ impl ConfigStoragePy { match kwargs { Some(kwargs) => { let mut keys = HashMap::new(); - for (key, value) in kwargs.iter() { - - } + for (key, value) in kwargs.iter() {} Ok(Self { keys }) } - None => Ok(Self { keys: HashMap::new() }), + None => Ok(Self { + keys: HashMap::new(), + }), } } #[getter] /// 获取最大允许的层级深度 - pub fn get_max_allowed_depth(&self) -> usize { - MAX_CFG_DEPTH - } + pub fn get_max_allowed_depth(&self) -> usize { MAX_CFG_DEPTH } } impl ConfigStoragePy { /// 递归解析配置 /// /// 用个 Result 来标记递归过深 - fn parse_init_key(map: &mut HashMap, current_deepth: usize) -> Result<(), usize>{ + fn parse_init_key( + map: &mut HashMap, + current_deepth: usize, + ) -> Result<(), usize> { if current_deepth > MAX_CFG_DEPTH { Err(current_deepth) } else {