mit-pdos / noria

Fast web applications through dynamic, partially-stateful dataflow
Apache License 2.0
4.97k stars 241 forks source link

Replace `mem::replace` with assignment #159

Closed aDotInTheVoid closed 4 years ago

aDotInTheVoid commented 4 years ago

If the result of mem::replace is not used, it is equivalent to assignment. This way the code is more readable and doesn't give compiler warnings.

If there is an advantage to using mem::replace, let me know.