mirror of
https://github.com/132nd-vWing/tacview-splitter.git
synced 2026-10-25 05:39:49 +01:00
make crate constants locale to module
This commit is contained in:
1 parent
a35ff8b362
commit
fd800ce394
2 files changed
+3
-4
No files matched your search
@@ -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 = '-';
|
||||
+3
-1
@@ -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>,
|
||||
|
||||
Reference in new issue
Block a user