We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4843334 commit 4841dd8Copy full SHA for 4841dd8
src/manifest.rs
@@ -29,9 +29,9 @@ pub fn split_input(
29
toolchain: Option<String>,
30
) -> MainResult<(String, PathBuf, Option<String>)> {
31
fn contains_main_method(source: &str) -> bool {
32
- let re_shebang: Regex =
+ let re_main: Regex =
33
Regex::new(r#"(?m)^ *(pub )?(async )?(extern "C" )?fn main *\("#).unwrap();
34
- re_shebang.is_match(source)
+ re_main.is_match(source)
35
}
36
37
let source_in_package = package_path.as_ref().join(script_name);
0 commit comments