Skip to content

Commit

Permalink
feat(#41): expect instaed of #unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Jun 24, 2024
1 parent ec9a9b0 commit 444c153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/report/latex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ use std::path::Path;
/// ```
pub fn template(path: Option<&str>) -> String {
return fs::read_to_string(Path::new(path.unwrap_or("resources/report.tex")))
.unwrap();
.expect("template should be read from");
}

#[cfg(test)]
Expand Down

0 comments on commit 444c153

Please sign in to comment.