Skip to content

Commit fe1e788

Browse files
cargo fmt
1 parent 3579d43 commit fe1e788

File tree

5 files changed

+6
-19
lines changed

5 files changed

+6
-19
lines changed

src/agent/api.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ impl AgentApi {
111111
let sleep_for = Duration::from_millis(
112112
rand::thread_rng().gen_range(500..(retry_interval * 1000)),
113113
);
114-
warn!(
115-
"connection to the server failed. retrying in {sleep_for:?}..."
116-
);
114+
warn!("connection to the server failed. retrying in {sleep_for:?}...");
117115
::std::thread::sleep(sleep_for);
118116
retry_interval *= 2;
119117
if retry_interval >= 8 * 60 {

src/config.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,7 @@ impl Config {
183183
let mut any_missing = false;
184184
for crate_name in self.crates.keys() {
185185
if !list_of_crates.contains(crate_name) {
186-
error!(
187-
"check-config failed: crate `{crate_name}` is not available."
188-
);
186+
error!("check-config failed: crate `{crate_name}` is not available.");
189187
any_missing = true;
190188
}
191189
}
@@ -214,9 +212,7 @@ impl Config {
214212
let mut any_missing = false;
215213
for repo_name in self.github_repos.keys() {
216214
if !list_of_crates.contains(repo_name) {
217-
error!(
218-
"check-config failed: GitHub repo `{repo_name}` is missing"
219-
);
215+
error!("check-config failed: GitHub repo `{repo_name}` is missing");
220216
any_missing = true;
221217
}
222218
}

src/runner/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ pub fn run_ex(
4747
// jobs won't be completed.
4848
let mut i = 0;
4949
while !rustwide::cmd::docker_running(workspace) {
50-
log::error!(
51-
"docker is not currently up, waiting for it to start (tried {i} times)"
52-
);
50+
log::error!("docker is not currently up, waiting for it to start (tried {i} times)");
5351
i += 1;
5452
}
5553

src/runner/test.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,7 @@ pub(super) fn run_test(
234234
rustwide::logging::capture(logs, || {
235235
info!(
236236
"{} {} against {} for {}",
237-
action,
238-
ctx.krate,
239-
ctx.toolchain,
240-
ctx.experiment.name
237+
action, ctx.krate, ctx.toolchain, ctx.experiment.name
241238
);
242239
let sandbox = SandboxBuilder::new()
243240
.memory_limit(Some(ctx.config.sandbox.memory_limit.to_bytes()))

src/server/auth.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ impl ACL {
130130
let mut orgs = HashMap::new();
131131
for (org, team) in &self.teams {
132132
if let Err(err) = self.load_team(github, &mut new_cache, &mut orgs, org, team) {
133-
warn!(
134-
"failed to authorize members of {org}/{team} to use the bot"
135-
);
133+
warn!("failed to authorize members of {org}/{team} to use the bot");
136134
warn!("caused by: {err}");
137135
}
138136
}

0 commit comments

Comments
 (0)