Skip to content

Commit 6414ff8

Browse files
committed
Autoformat
1 parent 77b9268 commit 6414ff8

113 files changed

Lines changed: 180 additions & 253 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.toml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,21 @@ pretty_assertions = "1.4"
122122
ratatui = { version = "0.30", default-features = false }
123123
regex = "1"
124124
rlimit = "0.11"
125-
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
126-
hyper-rustls = { version = "0.27", default-features = false, features = ["ring", "http1", "http2", "tls12"] }
127-
tokio-rustls = { version = "0.26", default-features = false, features = ["ring", "tls12"] }
125+
rustls = { version = "0.23", default-features = false, features = [
126+
"ring",
127+
"std",
128+
"tls12",
129+
] }
130+
hyper-rustls = { version = "0.27", default-features = false, features = [
131+
"ring",
132+
"http1",
133+
"http2",
134+
"tls12",
135+
] }
136+
tokio-rustls = { version = "0.26", default-features = false, features = [
137+
"ring",
138+
"tls12",
139+
] }
128140
scopeguard = "1.2"
129141
serde = "1.0"
130142
serde_json = "1.0"

src/context.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use std::sync::{Arc, Mutex};
66
use std::thread::JoinHandle;
77

88
use anyhow::{anyhow, bail, Context, Error};
9-
109
use task_maker_cache::Cache;
1110
use task_maker_dag::CacheMode;
1211
use task_maker_exec::ductile::{new_local_channel, ChannelReceiver, ChannelSender};

src/local.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use anyhow::{bail, Context, Error};
2-
32
use task_maker_format::ui::{UIMessage, UI};
43

54
use crate::context::RuntimeContext;

src/opt.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ use std::path::PathBuf;
44
use anyhow::{Context, Error};
55
use clap::{ArgAction, Parser};
66
use itertools::Itertools;
7-
87
use task_maker_dag::DagPriority;
98
use task_maker_format::terry::Seed;
10-
use task_maker_format::{find_task, get_sanity_check_list, TaskFormat};
11-
use task_maker_format::{EvaluationConfig, VALID_TAGS};
9+
use task_maker_format::{
10+
find_task, get_sanity_check_list, EvaluationConfig, TaskFormat, VALID_TAGS,
11+
};
1212

1313
#[derive(Parser, Debug)]
1414
#[clap(

src/remote.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ use std::net::SocketAddr;
22
use std::path::PathBuf;
33

44
use anyhow::{bail, Context, Error};
5+
use task_maker_exec::derive_key_from_password;
56
use task_maker_exec::ductile::{
67
connect_channel, connect_channel_with_enc, connect_unix_channel, ChannelReceiver, ChannelSender,
78
};
89
use url::{ParseError, Url};
910

10-
use task_maker_exec::derive_key_from_password;
11-
1211
/// Parse the server url address and try to connect to that host.
1312
pub fn connect_to_remote_server<S, R, Str: AsRef<str>>(
1413
server_url: Str,

src/sandbox.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use anyhow::{bail, Context, Error};
88
use tabox::configuration::SandboxConfiguration;
99
use tabox::result::SandboxExecutionResult;
1010
use tabox::{Sandbox, SandboxImplementation};
11-
1211
use task_maker_exec::find_tools::find_tools_path;
1312
use task_maker_exec::{RawSandboxResult, SandboxRunner};
1413

src/tools/add_solution_checks.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use std::sync::{Arc, Mutex};
88
use anyhow::{bail, Context, Error};
99
use clap::Parser;
1010
use itertools::Itertools;
11-
1211
use task_maker_format::ioi::UIState;
1312
use task_maker_format::ui::{StdoutPrinter, UIStateT, BLUE, BOLD, YELLOW};
1413
use task_maker_format::{

src/tools/booklet.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use std::path::{Path, PathBuf};
22

33
use anyhow::{bail, Context, Error};
44
use clap::Parser;
5-
65
use task_maker_format::ioi::{make_contest_booklets, Booklet, BookletConfig, IOITask};
76
use task_maker_format::{find_task, EvaluationConfig};
87

src/tools/clear.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
use crate::FindTaskOpt;
21
use anyhow::{Context, Error};
32
use clap::Parser;
43

4+
use crate::FindTaskOpt;
5+
56
#[derive(Parser, Debug)]
67
pub struct ClearOpt {
78
#[clap(flatten, next_help_heading = Some("TASK SEARCH"))]

src/tools/copy_competition_files.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use std::path::{Path, PathBuf};
33

44
use anyhow::{bail, Context, Error};
55
use clap::Parser;
6-
76
use task_maker_format::ioi::{Booklet, BookletConfig, IOITask, IOITaskInfo};
87
use task_maker_format::{find_task, EvaluationConfig, TaskInfo};
98

0 commit comments

Comments
 (0)