mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Remove into_node_list()
(#1609)
This commit is contained in:
parent
9aca778a93
commit
d4e3cc7a0a
1 changed files with 0 additions and 12 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue