neon_arch commited on
Commit
fd6cb46
1 Parent(s): b2c72bd

⚙️ refactor: replace string type to &str type (#180)(#178)

Browse files
Files changed (1) hide show
  1. src/lib.rs +1 -1
src/lib.rs CHANGED
@@ -42,7 +42,7 @@ use handler::paths::{file_path, FileType};
42
  pub fn run(listener: TcpListener, config: Config) -> std::io::Result<Server> {
43
  let mut handlebars: Handlebars = Handlebars::new();
44
 
45
- let public_folder_path: String = file_path(FileType::Theme)?;
46
 
47
  handlebars
48
  .register_templates_directory(".html", format!("{}/templates", public_folder_path))
 
42
  pub fn run(listener: TcpListener, config: Config) -> std::io::Result<Server> {
43
  let mut handlebars: Handlebars = Handlebars::new();
44
 
45
+ let public_folder_path: &str = file_path(FileType::Theme)?;
46
 
47
  handlebars
48
  .register_templates_directory(".html", format!("{}/templates", public_folder_path))