Skip to content

Commit

Permalink
Remove redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
prozacchiwawa committed Jul 13, 2024
1 parent 49044d3 commit aebb21e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/compiler/preprocessor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,6 @@ impl Preprocessor {
return Ok(());
}

if desc.kind.is_some() {
}
let (full_name, content) = self.opts.read_new_file(self.opts.filename(), name_string)?;
includes.push(IncludeDesc {
name: full_name.as_bytes().to_vec(),
Expand Down
8 changes: 3 additions & 5 deletions src/tests/classic/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2502,11 +2502,9 @@ fn test_include_bin_should_not_be_parsed() {
"run".to_string(),
"-i".to_string(),
"resources/tests".to_string(),
"(mod (X) (include *standard-cl-23.1*) (embed-file test bin bin-quote.bin) test)".to_string()
]);
let result = do_basic_brun(&vec![
"brun".to_string(),
program
"(mod (X) (include *standard-cl-23.1*) (embed-file test bin bin-quote.bin) test)"
.to_string(),
]);
let result = do_basic_brun(&vec!["brun".to_string(), program]);
assert_eq!(result.trim(), "\"'test\"");
}

0 comments on commit aebb21e

Please sign in to comment.