File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ struct GodboltResponse {
34
34
}
35
35
36
36
pub fn help ( args : Args ) -> Result < ( ) , crate :: Error > {
37
- let message = "Compile Rust code using https://rust.godbolt.org/. Full optimizations are applied unless overriden.
37
+ let message = "Compile Rust code using < https://rust.godbolt.org/> . Full optimizations are applied unless overriden.
38
38
```?godbolt flags={} rustc={} ``\u{200B} `code``\u{200B} ` ```
39
39
Optional arguments:
40
40
\t flags: flags to pass to rustc invocation. Defaults to \" -Copt-level=3 --edition=2018\" .
@@ -61,6 +61,7 @@ pub fn compile_rust_source(
61
61
return Ok ( Compilation :: Error { stderr : e } ) ;
62
62
}
63
63
} ;
64
+ info ! ( "cv: rustc {}" , cv) ;
64
65
65
66
let response: GodboltResponse = http
66
67
. execute (
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ fn app() -> Result<(), Error> {
150
150
}
151
151
152
152
cmds. add ( "?godbolt flags={} version={} ```\n code```" , |args| {
153
- let flags = args. params . get ( "flags" ) . unwrap_or ( & "false " ) ;
153
+ let flags = args. params . get ( "flags" ) . unwrap_or ( & "-Copt-level=3 --edition=2018 " ) ;
154
154
let rustc = args. params . get ( "rustc" ) . unwrap_or ( & "nightly" ) ;
155
155
156
156
let code = args
You can’t perform that action at this time.
0 commit comments