Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-1325

Rename various mod.rs files to their module names

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.7.0
    • Affects Version/s: None
    • Component/s: None

      Prior to Rust 1.30, in order to have modules nested in subdirectories, they needed to be named some_module_name/mod.rs. This lead to a lot of files being named mod.rs though, which could make grepping difficult. Nowadays, the modules can be (and are encouraged to be) named <modulename>.rs and submodules named <modulename>/<submodulename>.rs, which is much easier to search for.

      See https://doc.rust-lang.org/reference/items/modules.html#module-source-filenames for more info.

            Assignee:
            isabel.atkinson@mongodb.com Isabel Atkinson
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: