Skip to content

Commit

Permalink
Change main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
wmrmrx committed May 12, 2024
1 parent a5855e1 commit cbf9247
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pdf-generator/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,6 @@ fn codes(codes_dir_path: &str) -> Result<String, std::fmt::Error> {
let mut file =
fs::File::open(&code).unwrap_or_else(|_| panic!("{code:?} is not a file!"));

assert!(
file_name.ends_with(".cpp"),
"{} is not a cpp file!",
file_name
);
let file_name = file_name.trim_end_matches(".cpp");

let mut content = String::new();
file.read_to_string(&mut content).unwrap();

Expand Down

0 comments on commit cbf9247

Please sign in to comment.