tests: import lazy_static as needed
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
		@ -695,6 +695,8 @@ fn test_query_string() {
 | 
				
			|||||||
    assert!(res.is_ok());
 | 
					    assert!(res.is_ok());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // TEST regex pattern
 | 
					    // TEST regex pattern
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    use lazy_static::lazy_static;
 | 
				
			||||||
    lazy_static! {
 | 
					    lazy_static! {
 | 
				
			||||||
        static ref TEST_REGEX: Regex = Regex::new("test").unwrap();
 | 
					        static ref TEST_REGEX: Regex = Regex::new("test").unwrap();
 | 
				
			||||||
        static ref TEST2_REGEX: Regex = Regex::new("^test$").unwrap();
 | 
					        static ref TEST2_REGEX: Regex = Regex::new("^test$").unwrap();
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user