mirror of
				https://github.com/bspeice/qadapt
				synced 2025-11-04 02:20:55 -05:00 
			
		
		
		
	Pass tests in release mode
This commit is contained in:
		@ -3,5 +3,9 @@ use qadapt::enter_protected;
 | 
				
			|||||||
#[test]
 | 
					#[test]
 | 
				
			||||||
#[should_panic]
 | 
					#[should_panic]
 | 
				
			||||||
fn guard_without_initialization() {
 | 
					fn guard_without_initialization() {
 | 
				
			||||||
    enter_protected();
 | 
					    if cfg!(debug_assertions) {
 | 
				
			||||||
 | 
					        enter_protected();
 | 
				
			||||||
 | 
					    } else {
 | 
				
			||||||
 | 
					        panic!("Intentional")
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user