build.rs: fix "does not live long enough" error
caused by the phf_codegen update
This commit is contained in:
		
							
								
								
									
										2
									
								
								build.rs
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								build.rs
									
									
									
									
									
								
							@@ -53,7 +53,7 @@ pub fn main() {
 | 
			
		||||
    let mut phf_map = phf_codegen::OrderedMap::<&str>::new();
 | 
			
		||||
    for krate in &crates {
 | 
			
		||||
        let map_value = format!("({krate}::uumain, {krate}::uu_app)");
 | 
			
		||||
        phf_map.entry(krate, &map_value);
 | 
			
		||||
        phf_map.entry(krate, map_value);
 | 
			
		||||
    }
 | 
			
		||||
    write!(mf, "{}", phf_map.build()).unwrap();
 | 
			
		||||
    mf.write_all(b"\n}\n").unwrap();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user