From bb8f359f6d9fcdc1d1b1dca908ce83d7b6665d78 Mon Sep 17 00:00:00 2001 From: djairoh Date: Wed, 10 May 2023 16:04:19 +0200 Subject: [PATCH] quick improvement to Field struct --- src/structs/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structs/config.rs b/src/structs/config.rs index 6239e09..d403399 100644 --- a/src/structs/config.rs +++ b/src/structs/config.rs @@ -9,9 +9,9 @@ pub struct Field { } impl Field { - fn new(metadata_field: String, num_chars: u8) -> Self { + fn new(field: String, num_chars: u8) -> Self { Field { - field: metadata_field, + field, num_chars } }