couple of trivial fixes to make clippy a bit more happy (#704)

clippy: fix a few lints

The fixes are:

  * Use single quotes for single-character
  * Use ticks in documentation when necessary.
  * Just bow to clippy's wisdom.
This commit is contained in:
Igor Gnatenko
2017-12-30 22:06:16 +01:00
committed by Andrew Gallant
parent 03b0d832ed
commit a5855a5d73
4 changed files with 10 additions and 9 deletions

View File

@@ -14,8 +14,8 @@ enum State {
/// Unescapes a string given on the command line. It supports a limited set of
/// escape sequences:
///
/// * \t, \r and \n are mapped to their corresponding ASCII bytes.
/// * \xZZ hexadecimal escapes are mapped to their byte.
/// * `\t`, `\r` and `\n` are mapped to their corresponding ASCII bytes.
/// * `\xZZ` hexadecimal escapes are mapped to their byte.
pub fn unescape(s: &str) -> Vec<u8> {
use self::State::*;