@@ -11,7 +11,7 @@ use crate::{
11
11
subm_send:: { SubmExecutionResult , SubmissionCase , SubmissionCaseResp } ,
12
12
subm_show:: SubmList ,
13
13
test_send:: { TestCase , TestCaseResp , TestExecutionResult } ,
14
- Descryption , Rate ,
14
+ Description , Rate ,
15
15
} ,
16
16
ProgrammingLanguage ,
17
17
} ;
@@ -23,7 +23,6 @@ pub struct Problem {
23
23
pub full_data : ProblemFullData ,
24
24
}
25
25
26
- #[ allow( unused) ]
27
26
impl Problem {
28
27
pub async fn send_test (
29
28
& self ,
@@ -174,12 +173,12 @@ impl Problem {
174
173
self . full_data . data . question . hints . clone ( )
175
174
}
176
175
177
- pub fn description ( & self ) -> Result < Descryption , Errors > {
176
+ pub fn description ( & self ) -> Result < Description , Errors > {
178
177
let descryption = json ! ( {
179
178
"name" : self . full_data. data. question. title,
180
179
"content" : self . full_data. data. question. content
181
180
} ) ;
182
- Ok ( serde_json:: from_value :: < Descryption > ( descryption) ?)
181
+ Ok ( serde_json:: from_value :: < Description > ( descryption) ?)
183
182
}
184
183
185
184
pub fn difficulty ( & self ) -> String {
0 commit comments