diff options
| author | acdenisSK <[email protected]> | 2018-08-07 20:12:16 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2018-08-07 20:12:16 +0200 |
| commit | 34b8479a2117abda1eadf84e8d7a58c1d6a97815 (patch) | |
| tree | bf6e4bd3a4901c124723133a999a7a3fce227752 /src/framework | |
| parent | Fix a usage of a private function in a test (diff) | |
| download | serenity-34b8479a2117abda1eadf84e8d7a58c1d6a97815.tar.xz serenity-34b8479a2117abda1eadf84e8d7a58c1d6a97815.zip | |
Unwrap `rfind`
Diffstat (limited to 'src/framework')
| -rw-r--r-- | src/framework/standard/args.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/framework/standard/args.rs b/src/framework/standard/args.rs index cec1f20..e0a83ee 100644 --- a/src/framework/standard/args.rs +++ b/src/framework/standard/args.rs @@ -726,12 +726,7 @@ impl Args { return s; } - let end = s.rfind('"'); - if end.is_none() { - return s; - } - - let end = end.unwrap(); + let end = s.rfind('"').uwnrap(); // If it got the quote at the start, then there's no closing quote. if end == 0 { |