mod network {
    fn connect() {
    }

    mod client {
        fn connect() {
        }
    }
}


#[cfg(test)]
mod tests {
    #[test]
    fn it_works() {
    }
}

mod network {
    fn connect() {
    }
}

mod client {
    fn connect() {
    }
}

#[cfg(test)]
mod tests {
    #[test]
    fn it_works() {
    }
}

--- 
+++ 
@@ -1,12 +1,13 @@
 mod network {
     fn connect() {
     }
+
+    mod client {
+        fn connect() {
+        }
+    }
 }
 
-mod client {
-    fn connect() {
-    }
-}
 
 #[cfg(test)]
 mod tests {
Move client module inside network module
