File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ struct GodboltResponse {
3434} 
3535
3636pub  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} ` ``` 
3939Optional arguments: 
4040    \t flags: 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 ( 
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ fn app() -> Result<(), Error> {
149149    } 
150150
151151    cmds. add ( "?godbolt flags={} version={} ```\n code```" ,  |args| { 
152-         let  flags = args. params . get ( "flags" ) . unwrap_or ( & "false " ) ; 
152+         let  flags = args. params . get ( "flags" ) . unwrap_or ( & "-Copt-level=3 --edition=2018 " ) ; 
153153        let  rustc = args. params . get ( "rustc" ) . unwrap_or ( & "nightly" ) ; 
154154
155155        let  code = args
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments