You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Tweaks to code highlighting. Closes#149.
* Remove contradictory rule for `as`.
`as` has three completely unrelated uses in Rust.
- type cast: `nvalues as u32`
- import alias: `use std::collections::HashMap as Map;`
- qualify a method with both type and trait: `<TcpStream as Write>::write_all(s, bytes)?;`
In all cases `as` appears between two things, so `operator` isn't bad. I think
`keyword` is a little better though.
(It would also be possible to use `operator only` for casts, but that seems
excessive to me.)
0 commit comments