From ba7b52364d78845b6f644f4629bcf071e45e6ee5 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Wed, 20 Oct 2021 13:41:13 +0200 Subject: [PATCH] Maybe fix imports? --- src/main.rs | 7 ++----- src/models/mod.rs | 2 +- src/models/piece.rs | 1 + 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 31e6b9d..41da7ea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,5 @@ -mod models { - pub mod board; - pub mod piece; - pub mod networking; -} +mod models; +use models::{player, board, piece, networking}; use clap::{Arg, App, SubCommand}; fn main() { diff --git a/src/models/mod.rs b/src/models/mod.rs index df2f8b7..1627db4 100644 --- a/src/models/mod.rs +++ b/src/models/mod.rs @@ -1,5 +1,5 @@ pub mod board; -// pub mod networking; +pub mod networking; pub mod piece; pub mod player; diff --git a/src/models/piece.rs b/src/models/piece.rs index 9a76fd1..82b0ae2 100644 --- a/src/models/piece.rs +++ b/src/models/piece.rs @@ -2,6 +2,7 @@ use std::fmt; use super::player::Player; + #[derive(Clone)] pub enum DjedDirection { NorthWest,