File tree 4 files changed +9
-15
lines changed
4 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -92,9 +92,9 @@ impl<T: Read + Seek> Archive<T> {
92
92
return Ok ( Entry :: Tar ( entry) ) ;
93
93
}
94
94
}
95
- Err ( TmcError :: TarRead ( std:: io:: Error :: other (
96
- format ! ( "Could not find {path} in tar" ) ,
97
- ) ) )
95
+ Err ( TmcError :: TarRead ( std:: io:: Error :: other ( format ! (
96
+ "Could not find {path} in tar"
97
+ ) ) ) )
98
98
}
99
99
Self ( ArchiveInner :: TarZstd ( archive) ) => {
100
100
for entry in archive. entries ( ) . map_err ( TmcError :: TarRead ) ? {
@@ -103,9 +103,9 @@ impl<T: Read + Seek> Archive<T> {
103
103
return Ok ( Entry :: TarZstd ( entry) ) ;
104
104
}
105
105
}
106
- Err ( TmcError :: TarRead ( std:: io:: Error :: other (
107
- format ! ( "Could not find {path} in tar" ) ,
108
- ) ) )
106
+ Err ( TmcError :: TarRead ( std:: io:: Error :: other ( format ! (
107
+ "Could not find {path} in tar"
108
+ ) ) ) )
109
109
}
110
110
Self ( ArchiveInner :: Zip ( archive) ) => {
111
111
archive. by_name ( path) . map ( Entry :: Zip ) . map_err ( Into :: into)
Original file line number Diff line number Diff line change @@ -34,9 +34,7 @@ pub fn list_local_course_exercises(
34
34
client_name : & str ,
35
35
course_slug : & str ,
36
36
) -> Result < Vec < LocalExercise > , LangsError > {
37
- log:: debug!(
38
- "listing local course exercises of {course_slug} for {client_name}"
39
- ) ;
37
+ log:: debug!( "listing local course exercises of {course_slug} for {client_name}" ) ;
40
38
41
39
let projects_dir = TmcConfig :: load ( client_name) ?. projects_dir ;
42
40
let mut projects_config = ProjectsConfig :: load ( & projects_dir) ?;
Original file line number Diff line number Diff line change @@ -42,9 +42,7 @@ impl Credentials {
42
42
token,
43
43
} ) ) ,
44
44
Err ( e) => {
45
- log:: error!(
46
- "Failed to deserialize credentials.json due to \" {e}\" , deleting"
47
- ) ;
45
+ log:: error!( "Failed to deserialize credentials.json due to \" {e}\" , deleting" ) ;
48
46
file_util:: remove_file ( & credentials_path) ?;
49
47
Err ( LangsError :: DeserializeCredentials ( credentials_path, e) )
50
48
}
Original file line number Diff line number Diff line change @@ -145,9 +145,7 @@ pub fn download_old_submission(
145
145
submission_id : u32 ,
146
146
save_old_state : bool ,
147
147
) -> Result < ( ) , LangsError > {
148
- log:: debug!(
149
- "downloading old submission {submission_id} for {exercise_id}"
150
- ) ;
148
+ log:: debug!( "downloading old submission {submission_id} for {exercise_id}" ) ;
151
149
152
150
if save_old_state {
153
151
// submit old exercise
You can’t perform that action at this time.
0 commit comments