mirror of
https://github.com/loot/loot-condition-interpreter.git
synced 2026-07-27 14:16:09 -07:00
Move version module
It's only used inside the function module, so move it there.
This commit is contained in:
@@ -7,7 +7,7 @@ use std::path::{Path, PathBuf};
|
|||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
|
|
||||||
use super::{ComparisonOperator, Function};
|
use super::{ComparisonOperator, Function};
|
||||||
use crate::version::Version;
|
use super::version::Version;
|
||||||
use crate::{Error, State};
|
use crate::{Error, State};
|
||||||
|
|
||||||
fn add_extension(path: &Path, extension: &str) -> PathBuf {
|
fn add_extension(path: &Path, extension: &str) -> PathBuf {
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ use std::path::PathBuf;
|
|||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
use unicase::eq;
|
use unicase::eq;
|
||||||
|
|
||||||
|
mod version;
|
||||||
pub mod eval;
|
pub mod eval;
|
||||||
pub mod parse;
|
pub mod parse;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
mod error;
|
mod error;
|
||||||
mod function;
|
mod function;
|
||||||
mod version;
|
|
||||||
|
|
||||||
use std::collections::{HashMap, HashSet};
|
use std::collections::{HashMap, HashSet};
|
||||||
use std::ffi::OsStr;
|
use std::ffi::OsStr;
|
||||||
|
|||||||
Reference in New Issue
Block a user