aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2019-09-28 16:04:53 +0000
committerHristo Venev <hristo@venev.name>2019-09-28 16:04:53 +0000
commita66bdaee155d9012b1fd75bf31332df638d49857 (patch)
treeb75058baf614a6fac894123ba21143382fb5e546
parent5bcc0210923e8cb50fc97b318309d1b62c5cf62e (diff)
Move builder inside manager.
-rw-r--r--src/main.rs1
-rw-r--r--src/manager/builder.rs (renamed from src/builder.rs)0
-rw-r--r--src/manager/mod.rs (renamed from src/manager.rs)4
3 files changed, 3 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 3d74674..4ae628e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -16,7 +16,6 @@ use std::{fs, io};
#[cfg(feature = "toml")]
use toml;
-mod builder;
mod config;
mod manager;
mod model;
diff --git a/src/builder.rs b/src/manager/builder.rs
index 9fc2291..9fc2291 100644
--- a/src/builder.rs
+++ b/src/manager/builder.rs
diff --git a/src/manager.rs b/src/manager/mod.rs
index 3f487bf..8e8792d 100644
--- a/src/manager.rs
+++ b/src/manager/mod.rs
@@ -2,7 +2,7 @@
//
// See COPYING.
-use crate::{builder, config, model, proto, wg};
+use crate::{config, model, proto, wg};
use std::ffi::{OsStr, OsString};
#[cfg(unix)]
use std::os::unix::fs::OpenOptionsExt;
@@ -10,6 +10,8 @@ use std::path::{Path, PathBuf};
use std::time::{Duration, Instant, SystemTime};
use std::{fs, io};
+mod builder;
+
struct Source {
name: String,
config: config::Source,