Skip to content

mod statements are ordered ASCIIbetically #3242

Closed

Description

@sugar700

https://gitlab.com/KonradBorowski/advent-of-code-2018/commit/cd9f8773de229b8fd6356e6c722d0ef55173f809

diff --git a/src/main.rs b/src/main.rs
index 090e2e1..f147489 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -3,6 +3,7 @@ use std::io::{self, Read, Write};
 use structopt::StructOpt;

 mod day1;
+mod day10;
 mod day2;
 mod day3;
 mod day4;
@@ -11,7 +12,6 @@ mod day6;
 mod day7;
 mod day8;
 mod day9;
-mod day10;
 #[cfg(test)]
 mod testmacros;

I think it would be better to use natural ordering.

Activity

  1. changed the title [-]`mod` statements are ordered ASCII-betically[/-] [+]`mod` statements are ordered ASCIIbetically[/+] on Dec 10, 2018
  2. topecongiro commented on Apr 24, 2019

    @topecongiro
    Contributor

    IMHO this hardly ever occurs in practice but the implementation cost is pretty high, so I am going to mark this as won't fix. Sorry.

  3. sugar700 commented on Nov 10, 2021

    @sugar700
    Author

    Fixed by #3764.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions