@simontatham It's a thing, though I usually prefer encasing the mutability part in a block:
```
let x = {
let mut x = ...;
x += ...;
x
};
```

Eduardo Pinho
@e_net4@hachyderm.io
Post
-
An amusing but also actually useful thing in #RustLang: I realised this week that in some situations there's a good reason to write an apparent no-op let statement.let x = x;Because if x was previously mut, this makes it not mut any more