Skip to content

Commit 6828f8b

Browse files
committed
Format code according to 2024 edition
1 parent 8eacfa3 commit 6828f8b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/commands/add.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use anyhow::Result;
22
use std::fs;
33
use toml_edit::{DocumentMut, InlineTable};
44

5-
use crate::{manifest::Manifest, modrinth::Client, ProjectType};
5+
use crate::{ProjectType, manifest::Manifest, modrinth::Client};
66

77
pub async fn add(client: &Client, projects: Vec<String>, project_type: ProjectType) -> Result<()> {
88
let manifest_src = fs::read_to_string("podzol.toml")?;

src/commands/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use anyhow::{anyhow, Result};
1+
use anyhow::{Result, anyhow};
22
use inquire::{Select, Text};
33
use std::{collections::HashMap, env::current_dir, fs, path::Path};
44

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl FromStr for ProjectType {
7676
match project_type {
7777
"mod" | "mods" => Ok(Self::Mod),
7878
"resource-pack" | "resource-packs" | "resource" | "resources" => Ok(Self::ResourcePack),
79-
"shader" | "shaders"=> Ok(Self::Shader),
79+
"shader" | "shaders" => Ok(Self::Shader),
8080
_ => Err(format!(
8181
"Unknown type '{project_type}'. Supported project types are: mod, resource-pack, shader",
8282
)),

src/manifest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use anyhow::Result;
2-
use async_zip::{base::write::ZipFileWriter, Compression, ZipEntryBuilder};
2+
use async_zip::{Compression, ZipEntryBuilder, base::write::ZipFileWriter};
33
use futures_io::AsyncWrite;
44
use futures_util::future::try_join_all;
55
use indicatif::{MultiProgress, ProgressBar, ProgressStyle};

0 commit comments

Comments
 (0)