Move version module

It's only used inside the function module, so move it there.
This commit is contained in:
Oliver Hamlet
2021-04-07 22:14:33 +01:00
parent 5d541f3807
commit 384b374d7d
4 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ use std::path::{Path, PathBuf};
use regex::Regex;
use super::{ComparisonOperator, Function};
use crate::version::Version;
use super::version::Version;
use crate::{Error, State};
fn add_extension(path: &Path, extension: &str) -> PathBuf {
+1
View File
@@ -6,6 +6,7 @@ use std::path::PathBuf;
use regex::Regex;
use unicase::eq;
mod version;
pub mod eval;
pub mod parse;
-1
View File
@@ -1,6 +1,5 @@
mod error;
mod function;
mod version;
use std::collections::{HashMap, HashSet};
use std::ffi::OsStr;