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.
2 parents 1dc66fb + fc3d787 commit bb013feCopy full SHA for bb013fe
src/manifest.rs
@@ -45,6 +45,7 @@ pub fn split_input(
45
input_id: &OsString,
46
) -> MainResult<(String, String)> {
47
fn contains_main_method(line: &str) -> bool {
48
+ let line = line.trim_start();
49
line.starts_with("fn main()")
50
|| line.starts_with("pub fn main()")
51
|| line.starts_with("async fn main()")
0 commit comments