Update register.rs

This commit is contained in:
Shunsuke Shibayama 2023-06-29 15:09:01 +09:00
parent d03dcbd392
commit 7f2c0301e2

View file

@ -1884,7 +1884,7 @@ impl Context {
let mod_ctx = ModuleContext::new(self.clone(), dict! {});
let mut builder = HIRBuilder::new_with_ctx(mod_ctx);
let src = Input::file(path.to_path_buf()).read();
let mode = if path.to_string_lossy().ends_with(".d.er") {
let mode = if path.to_string_lossy().ends_with("d.er") {
"declare"
} else {
"exec"