Skip to content

Commit 4dc8d9b

Browse files
committed
run formatter
1 parent 404a66f commit 4dc8d9b

File tree

3 files changed

+179
-150
lines changed

3 files changed

+179
-150
lines changed

src/index.rs

+7-5
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,7 @@ pub fn index_mods_dir(config: &Config) -> PathBuf {
182182
pub fn get_entry(config: &Config, id: &String, version: &VersionReq) -> Option<Entry> {
183183
let dir = index_mods_dir(config).join(id);
184184

185-
for path in {
186-
read_dir_recursive(&dir)
187-
.nice_unwrap("Unable to read index")
188-
} {
185+
for path in read_dir_recursive(&dir).nice_unwrap("Unable to read index") {
189186
let Ok(mod_info) = try_parse_mod_info(&path) else {
190187
continue;
191188
};
@@ -203,7 +200,12 @@ pub fn get_entry(config: &Config, id: &String, version: &VersionReq) -> Option<E
203200
None
204201
}
205202

206-
pub fn install_mod(config: &Config, id: &String, version: &VersionReq, ignore_platform: bool) -> PathBuf {
203+
pub fn install_mod(
204+
config: &Config,
205+
id: &String,
206+
version: &VersionReq,
207+
ignore_platform: bool,
208+
) -> PathBuf {
207209
let entry = get_entry(config, id, version)
208210
.nice_unwrap(format!("Unable to find '{id}' version '{version}'"));
209211

0 commit comments

Comments
 (0)