1. 25 3月, 2019 1 次提交
    • E
      When moving out of a for loop head, suggest borrowing it · ae883dc8
      Esteban Küber 提交于
      When encountering code like the following, suggest borrowing the for loop
      head to avoid moving it into the for loop pattern:
      
      ```
      fn main() {
          let a = vec![1, 2, 3];
          for i in &a {
              for j in a {
                  println!("{} * {} = {}", i, j, i * j);
              }
          }
      }
      ```
      ae883dc8
  2. 24 3月, 2019 14 次提交
  3. 23 3月, 2019 25 次提交