mirror of
				https://github.com/nitnelave/lldap.git
				synced 2023-04-12 14:25:13 +00:00 
			
		
		
		
	server: prefer immutable path
This commit is contained in:
		
							parent
							
								
									dd7e392626
								
							
						
					
					
						commit
						99c7e59568
					
				@ -25,9 +25,7 @@ use std::sync::RwLock;
 | 
			
		||||
use tracing::info;
 | 
			
		||||
 | 
			
		||||
async fn index() -> actix_web::Result<NamedFile> {
 | 
			
		||||
    let mut path = PathBuf::new();
 | 
			
		||||
    path.push("app");
 | 
			
		||||
    path.push("index.html");
 | 
			
		||||
    let path = PathBuf::from(r"app/index.html");
 | 
			
		||||
    Ok(NamedFile::open(path)?)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user