fix(engine): fix clippy warning
This commit is contained in:
		
							parent
							
								
									7d5fd6aa8b
								
							
						
					
					
						commit
						5f1ec3719e
					
				| 
						 | 
					@ -89,12 +89,11 @@ impl<'a> Middleware for UndoMiddleware<'a> {
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        *record = None;
 | 
					        *record = None;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    } else if let EventType::Mouse(_) = &event.etype {
 | 
					    } else if let EventType::Mouse(_) | EventType::CursorHintCompensation(_) = &event.etype {
 | 
				
			||||||
      // Any mouse event invalidates the undo feature, as it could
 | 
					      // Explanation:
 | 
				
			||||||
 | 
					      // * Any mouse event invalidates the undo feature, as it could
 | 
				
			||||||
      //   represent a change in application
 | 
					      //   represent a change in application
 | 
				
			||||||
      *record = None;
 | 
					      // * Cursor hints invalidate the undo feature, as it would be pretty
 | 
				
			||||||
    } else if let EventType::CursorHintCompensation(_) = &event.etype {
 | 
					 | 
				
			||||||
      // Cursor hints invalidate the undo feature, as it would be pretty
 | 
					 | 
				
			||||||
      //   complex to determine which delete operations should be performed.
 | 
					      //   complex to determine which delete operations should be performed.
 | 
				
			||||||
      //   This might change in the future.
 | 
					      //   This might change in the future.
 | 
				
			||||||
      *record = None;
 | 
					      *record = None;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user