From fd800ce39467ec155b7f52a630e463ab076d39c5 Mon Sep 17 00:00:00 2001 From: 132nd-Professor <132nd-Professor> Date: Fri, 12 Aug 2022 16:52:06 +0200 Subject: [PATCH] make crate constants locale to module --- src/constants.rs | 3 --- src/processor.rs | 4 +++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/constants.rs b/src/constants.rs index 3bc4fe2..a6e4d1f 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -1,5 +1,2 @@ pub const EXTENSION_ZIP: &str = ".zip.acmi"; pub const EXTENSION_TXT: &str = ".txt.acmi"; - -pub const COMMENT: char = '#'; -pub const MINUS: char = '-'; diff --git a/src/processor.rs b/src/processor.rs index 533eb20..3aa1ce9 100644 --- a/src/processor.rs +++ b/src/processor.rs @@ -2,9 +2,11 @@ use std::error::Error; use std::fmt::Display; use std::hash::Hash; -use crate::constants::{COMMENT, MINUS}; use crate::tacview::{Coalition, CoalitionIDs}; +const COMMENT: char = '#'; +const MINUS: char = '-'; + pub fn split_into_header_and_body(lines: &[S]) -> Result<(&[S], &[S]), ProcessingError> where S: AsRef,