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,13 +1,12 @@
 mod network {
     fn connect() {
     }
+}
 
-    mod client {
-        fn connect() {
-        }
+mod client {
+    fn connect() {
     }
 }
-
 
 #[cfg(test)]
 mod tests {
Move client module inside network module
