Remove into_node_list() (#1609)

This commit is contained in:
RumovZ 2022-01-21 12:23:52 +01:00 committed by GitHub
parent 9aca778a93
commit d4e3cc7a0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,18 +126,6 @@ impl Default for SearchBuilder {
}
}
impl Node {
/// If we're a group, return the contained elements.
/// If we're a single node, return ourselves in an one-element vec.
pub fn into_node_list(self) -> Vec<Node> {
if let Node::Group(nodes) = self {
nodes
} else {
vec![self]
}
}
}
impl SearchNode {
/// Construct [SearchNode] from an unescaped deck name.
pub fn from_deck_name(name: &str) -> Self {