@@ -70,6 +70,7 @@ impl GetExt for RequestBuilder {
7070 }
7171}
7272
73+ #[ allow( dead_code) ]
7374impl TmcCore {
7475 // convenience function
7576 fn get_json < T : DeserializeOwned > ( & self , url_tail : & str ) -> Result < T > {
@@ -154,7 +155,7 @@ impl TmcCore {
154155 }
155156
156157 pub ( super ) fn course_points ( & self , course_id : usize ) -> Result < ( ) > {
157- let url_tail = format ! ( "courses/{}/points" , course_id) ;
158+ let _url_tail = format ! ( "courses/{}/points" , course_id) ;
158159 todo ! ( "times out" )
159160 }
160161
@@ -234,13 +235,12 @@ impl TmcCore {
234235 organization_slug : & str ,
235236 course_name : & str ,
236237 ) -> Result < ( ) > {
237- todo ! ( "This feature is only for MOOC-organization's 2019 programming MOOC" ) ;
238- let url_tail = format ! (
238+ let _url_tail = format ! (
239239 "org/{}/courses/{}/eligible_students" ,
240240 percent_encode( organization_slug) ,
241241 percent_encode( course_name)
242242 ) ;
243- self . get_json ( & url_tail )
243+ todo ! ( "This feature is only for MOOC-organization's 2019 programming MOOC" ) ;
244244 }
245245
246246 pub ( super ) fn exercise_points_by_name (
@@ -466,8 +466,8 @@ impl TmcCore {
466466 }
467467
468468 pub ( super ) fn unlock ( & self , course_id : usize ) -> Result < ( ) > {
469+ let _url_tail = format ! ( "core/courses/{}" , course_id) ;
469470 todo ! ( "needs admin?" ) ;
470- let url_tail = format ! ( "core/courses/{}" , course_id) ;
471471 }
472472
473473 pub ( super ) fn download_exercise ( & self , exercise_id : usize , target : & Path ) -> Result < ( ) > {
0 commit comments