Skip to content

Commit e97edcd

Browse files
committed
Fix formatting
1 parent 19f25f0 commit e97edcd

File tree

4 files changed

+9
-15
lines changed

4 files changed

+9
-15
lines changed

crates/tmc-langs-framework/src/archive.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ impl<T: Read + Seek> Archive<T> {
9292
return Ok(Entry::Tar(entry));
9393
}
9494
}
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+
))))
9898
}
9999
Self(ArchiveInner::TarZstd(archive)) => {
100100
for entry in archive.entries().map_err(TmcError::TarRead)? {
@@ -103,9 +103,9 @@ impl<T: Read + Seek> Archive<T> {
103103
return Ok(Entry::TarZstd(entry));
104104
}
105105
}
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+
))))
109109
}
110110
Self(ArchiveInner::Zip(archive)) => {
111111
archive.by_name(path).map(Entry::Zip).map_err(Into::into)

crates/tmc-langs/src/config.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ pub fn list_local_course_exercises(
3434
client_name: &str,
3535
course_slug: &str,
3636
) -> 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}");
4038

4139
let projects_dir = TmcConfig::load(client_name)?.projects_dir;
4240
let mut projects_config = ProjectsConfig::load(&projects_dir)?;

crates/tmc-langs/src/config/credentials.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ impl Credentials {
4242
token,
4343
})),
4444
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");
4846
file_util::remove_file(&credentials_path)?;
4947
Err(LangsError::DeserializeCredentials(credentials_path, e))
5048
}

crates/tmc-langs/src/lib.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,7 @@ pub fn download_old_submission(
145145
submission_id: u32,
146146
save_old_state: bool,
147147
) -> 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}");
151149

152150
if save_old_state {
153151
// submit old exercise

0 commit comments

Comments
 (0)