From a3474acec1225238be386433d634a6ad82e9c37f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20H=C3=B6lting?= <87192362+moritz-hoelting@users.noreply.github.com> Date: Sun, 9 Jun 2024 21:22:37 +0200 Subject: [PATCH] remove unused name field in Datapack struct --- src/datapack/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/datapack/mod.rs b/src/datapack/mod.rs index 3ab5276..83f140c 100644 --- a/src/datapack/mod.rs +++ b/src/datapack/mod.rs @@ -20,7 +20,6 @@ use crate::{ #[derive(Debug, Clone)] pub struct Datapack { // TODO: Support filter and overlays - name: String, description: String, pack_format: u8, supported_formats: Option>, @@ -33,9 +32,8 @@ pub struct Datapack { impl Datapack { /// Create a new Minecraft datapack. #[must_use] - pub fn new(name: &str, pack_format: u8) -> Self { + pub fn new(pack_format: u8) -> Self { Self { - name: name.to_string(), description: String::from("A Minecraft datapack created with shulkerbox"), pack_format, supported_formats: None,