make crate constants locale to module

This commit is contained in:
132nd-Professor
2022-08-12 16:52:06 +02:00
parent a35ff8b362
commit fd800ce394
2 changed files with 3 additions and 4 deletions
+3 -1
View File
@@ -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<S>(lines: &[S]) -> Result<(&[S], &[S]), ProcessingError>
where
S: AsRef<str>,