diff --git a/src/lib.rs b/src/lib.rs
index 55ee332..039f673 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -85,12 +85,6 @@ fn create_gen_file(out_dir: &PathBuf, proto_files: &[PathBuf]) {
 
     for proto_path in proto_files {
         let file_stem = proto_path.file_stem().unwrap().to_str().unwrap();
-        let out_dir = out_dir
-            .to_str()
-            .expect("path must be UTF-8")
-            .replace('\\', "/");
-        writeln!(&out, "#[path = \"{}/{}.rs\"]", out_dir, file_stem)
-            .expect("failed to write to generated.");
         writeln!(&out, "pub mod {};", file_stem).expect("failed to write to generated.");
     }
 }
