Examples in CodingStandardsRust.md are wrong
The section on `CString` is incorrect:
- `CString::new("bl\x00ah").unwrap().into_raw()` will panic in the 'unwrap' call, it will never return a pointer of any kind, dangling or otherwise.
Also, [12cf04646c571646b726e697d66ecafad7886cf2](https://gitweb.torproject.org/tor.git/commit/doc/HACKING/CodingStandardsRust.md?id=12cf04646c571646b726e697d66ecafad7886cf2) seems to be the result of some miscommunication with [withoutboats](https://github.com/withoutboats):
- `.expect()` is [literally](https://doc.rust-lang.org/std/result/enum.Result.html#method.expect) '`.unwrap()`, but with a custom panic message,' it doesn't return an `Option` and is no safer than unwrap, but it is self-documenting.
**Trac**:
**Username**: cyberpunks
issue