Skip to content

Commit 8a06a59

Browse files
committed
fix
1 parent d0d889a commit 8a06a59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/problem.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
extern crate reqwest;
22
extern crate serde_json;
33

4-
use std::fmt::{Display, Error, Formatter};
54
use serde_json::Value;
5+
use std::fmt::{Display, Error, Formatter};
66

77
const PROBLEMS_URL: &str = "https://leetcode.com/api/problems/algorithms/";
88
const GRAPHQL_URL: &str = "https://leetcode.com/graphql";
@@ -46,7 +46,7 @@ pub fn get_problem(frontend_question_id: u32) -> Option<Problem> {
4646
question_id: problem.stat.frontend_question_id,
4747
return_type: {
4848
let v: Value = serde_json::from_str(&resp.data.question.meta_data).unwrap();
49-
v["return"]["type"].to_string().as_str().replace("\"", "").to_string()
49+
v["return"]["type"].to_string().replace("\"", "")
5050
},
5151
});
5252
}

0 commit comments

Comments
 (0)