1. 15 Nov, 2019 1 commit
  2. 10 Nov, 2019 1 commit
  3. 09 Nov, 2019 1 commit
  4. 06 Nov, 2019 3 commits
  5. 05 Nov, 2019 1 commit
  6. 30 Oct, 2019 2 commits
  7. 29 Oct, 2019 3 commits
  8. 26 Oct, 2019 1 commit
  9. 25 Oct, 2019 4 commits
    • AdminXVII's avatar
    • AdminXVII's avatar
      Apply clippy lints and refactor loops for easier understanding · 10dd15d8
      AdminXVII authored
      - Use clippy to improve the code's clarity and efficiency.
      - Refactor loops
      
      Try to avoid `loop`s with `break`s when it can be replaced with
      while/for loops.
      
      One of the most encountered loop style is:
      ```rust
      if ecm.entity_store().children[&entity].len() > 0 {
        let mut index = 0;
      
        loop {
          let child = ecm.entity_store().children[&entity][index];
          // ...
      
          if index + 1 < ecm.entity_store().children[&entity].len() {
              index += 1;
          } else {
              break;
          }
        }
      }
      ```
      The check can be without any impact be done at the loop start:
      ```rust
      if ecm.entity_store().children[&entity].len() > 0 {
        let mut index = 0;
      
        while index < ecm.entity_store().children[&entity].len() {
          let child = ecm.entity_store().children[&entity][index];
          // ...
      
          index += 1;
        }
      }
      ```
      Then the if is redundant:
      ```rust
      let mut index = 0;
      
      while index < ecm.entity_store().children[&entity].len() {
        let child = ecm.entity_store().children[&entity][index];
        // ...
      
        index += 1;
      }
      ```
      and given that no children is added inside the loop, this is equivalent
      to
      ```rust
      for index in 0..ecm.entity_store().children[&entity].len() {
        let child = ecm.entity_store().children[&entity][index];
        // ...
      }
      ```
      10dd15d8
    • Florian Blasius's avatar
      Wip proeprties. · ebc86f79
      Florian Blasius authored
      ebc86f79
    • Florian Blasius's avatar
      Refactor attached properties. · 6b19c7bc
      Florian Blasius authored
      6b19c7bc
  10. 24 Oct, 2019 1 commit
  11. 21 Oct, 2019 2 commits
  12. 18 Oct, 2019 2 commits
  13. 16 Oct, 2019 2 commits
  14. 15 Oct, 2019 1 commit
  15. 14 Oct, 2019 2 commits
  16. 12 Oct, 2019 2 commits
  17. 11 Oct, 2019 6 commits
  18. 10 Oct, 2019 3 commits
  19. 08 Oct, 2019 1 commit
  20. 07 Oct, 2019 1 commit