fixup! attr valid: return whether attrs non-empty
This commit is contained in:
		
					parent
					
						
							
								dc38076f50
							
						
					
				
			
			
				commit
				
					
						30351500bb
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -16,7 +16,7 @@ pub fn valid<I: Iterator<Item = char>>(chars: I) -> (usize, bool) {
 | 
				
			||||||
    for e in &mut p {
 | 
					    for e in &mut p {
 | 
				
			||||||
        match e {
 | 
					        match e {
 | 
				
			||||||
            Element::Class(..) | Element::Identifier(..) | Element::Attribute(..) => {
 | 
					            Element::Class(..) | Element::Identifier(..) | Element::Attribute(..) => {
 | 
				
			||||||
                has_attr = true
 | 
					                has_attr = true;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            Element::Invalid => return (0, false),
 | 
					            Element::Invalid => return (0, false),
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue