Skip to content

Commit b467ef5

Browse files
committed
small fixes
1 parent e9051e1 commit b467ef5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: src/godbolt.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct GodboltResponse {
3434
}
3535

3636
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.
3838
```?godbolt flags={} rustc={} ``\u{200B}`code``\u{200B}` ```
3939
Optional arguments:
4040
\tflags: flags to pass to rustc invocation. Defaults to \"-Copt-level=3 --edition=2018\".
@@ -61,6 +61,7 @@ pub fn compile_rust_source(
6161
return Ok(Compilation::Error { stderr: e });
6262
}
6363
};
64+
info!("cv: rustc {}", cv);
6465

6566
let response: GodboltResponse = http
6667
.execute(

Diff for: src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ fn app() -> Result<(), Error> {
150150
}
151151

152152
cmds.add("?godbolt flags={} version={} ```\ncode```", |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");
154154
let rustc = args.params.get("rustc").unwrap_or(&"nightly");
155155

156156
let code = args

0 commit comments

Comments
 (0)