diff options
author | Igor Gnatenko <ignatenko@redhat.com> | 2017-12-30 22:06:16 +0100 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2017-12-30 16:06:16 -0500 |
commit | a5855a5d733d42ba3913d78dd19083990d41ecf3 (patch) | |
tree | 46aa7b5e7b93f9cb821246e97cd544e0a5f95cc9 /src/unescape.rs | |
parent | 03b0d832edb821d2baed81e04fc82a0699935777 (diff) |
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.
Diffstat (limited to 'src/unescape.rs')
-rw-r--r-- | src/unescape.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unescape.rs b/src/unescape.rs index 5d7a50e8..c27e6e28 100644 --- a/src/unescape.rs +++ b/src/unescape.rs @@ -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::*; |