File tree 3 files changed +2
-28
lines changed
3 files changed +2
-28
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
pub mod execution;
2
2
mod helpers;
3
- pub mod html_opener;
4
3
pub mod leetcode;
5
4
pub mod submission;
6
5
pub mod user;
Original file line number Diff line number Diff line change 1
1
use crate :: args:: Cli ;
2
2
use crate :: file_parser:: codefile:: CodeFile ;
3
- use crate :: handlers:: html_opener:: open_html;
4
3
use crate :: utils:: { execute_testcases, submit} ;
5
4
6
5
use args:: Commands ;
@@ -40,7 +39,7 @@ fn main() -> Result<()> {
40
39
let filename = "daily_challenge.html" ;
41
40
std:: fs:: write ( filename, question. content ) ?;
42
41
println ! ( "Saved question as HTML to {}" , filename. cyan( ) ) ;
43
- open_html ( filename) ;
42
+ open :: that ( filename) ? ;
44
43
}
45
44
Some ( Commands :: Question { question_name } ) => {
46
45
let question_name = if let Some ( idx) = question_name. find ( "leetcode.com/problems/" ) {
@@ -62,7 +61,7 @@ fn main() -> Result<()> {
62
61
// save to filename
63
62
std:: fs:: write ( & filename, question. content ) ?;
64
63
println ! ( "Saved question as HTML to {}" , filename. cyan( ) ) ;
65
- open_html ( & filename) ;
64
+ open :: that ( filename) ? ;
66
65
}
67
66
Some ( Commands :: RunCustom {
68
67
testcases,
You can’t perform that action at this time.
0 commit comments