Fixing more errors.
This commit is contained in:
@@ -28,7 +28,7 @@ pub const WORD_CONSTITUENT_CHARACTERS: &str =
|
||||
#[allow(dead_code)]
|
||||
pub fn in_section<'r, 's, 'x>(context: RefContext<'_, 'r, 's>, section_name: &'x str) -> bool {
|
||||
for thing in context.iter() {
|
||||
match thing.get_data() {
|
||||
match thing {
|
||||
ContextElement::Context(name) if *name == section_name => return true,
|
||||
_ => {}
|
||||
}
|
||||
@@ -42,7 +42,7 @@ pub fn immediate_in_section<'r, 's, 'x>(
|
||||
section_name: &'x str,
|
||||
) -> bool {
|
||||
for thing in context.iter() {
|
||||
match thing.get_data() {
|
||||
match thing {
|
||||
ContextElement::Context(name) if *name == section_name => return true,
|
||||
ContextElement::Context(name) if *name != section_name => return false,
|
||||
_ => {}
|
||||
|
||||
Reference in New Issue
Block a user