idomatic structure rust code, no include macro (#1528)

This commit is contained in:
rongyi
2024-10-23 18:49:47 +08:00
committed by GitHub
parent 0c60037e56
commit ef3010bd77
47 changed files with 57 additions and 80 deletions
+2 -2
View File
@@ -4,11 +4,11 @@
* Author: xBLACKICEx (xBLACKICE@outlook.com)
*/
include!("../include/include.rs");
use hello_algo_rust::include::{vec_to_tree, TreeNode, print_util};
use hello_algo_rust::op_vec;
use std::cell::RefCell;
use std::rc::Rc;
use tree_node::{vec_to_tree, TreeNode};
/* 前序遍历 */
fn pre_order(root: Option<&Rc<RefCell<TreeNode>>>) -> Vec<i32> {