Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dcd9576

Browse files
Removed the cfg feature
It was causing issues with running `cargo test`
1 parent 1bcdb47 commit dcd9576

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

‎Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,4 @@ serde = { version = "1.0.201", features = ["derive"], optional = true }
1818
cargo-make = "0.37.12"
1919

2020
[features]
21-
# Internal
22-
tree_macros_internals = []
23-
24-
# Other libraries
2521
serde = ["dep:serde"]

‎src/macros/helper_functions.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ use crate::utils::TreeNode;
22
use std::{cell::RefCell, collections::VecDeque, rc::Rc};
33

44
/// Boilerplate...
5-
#[cfg(feature = "tree_macros_internals")]
65
#[doc(hidden)]
76
fn rc_cell_tree_node(val: i32) -> Rc<RefCell<TreeNode>> {
87
Rc::new(RefCell::new(TreeNode::new(val)))
98
}
109

1110
/// This function can be inferred from the `tree!()` macro which works and is documented based on
1211
/// it.
13-
#[cfg(feature = "tree_macros_internals")]
1412
#[doc(hidden)]
1513
pub fn _build_tree(levels: &[Vec<Option<i32>>]) -> Option<Rc<RefCell<TreeNode>>> {
1614
if levels.is_empty() || levels[0].is_empty() || levels[0][0].is_none() {

‎src/macros/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// Iternal macro helper functions.
2-
#[cfg(feature = "tree_macros_internals")]
32
#[doc(hidden)]
43
pub mod helper_functions;
54

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /