aboutsummaryrefslogtreecommitdiff
path: root/src/framework
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-12-16 13:26:19 -0800
committerZeyla Hellyer <[email protected]>2017-12-16 13:26:19 -0800
commit60613ef696b093dbbac3a4e9e033c226c5d358ea (patch)
treef75145c36efcd786c6af05a84ffe0cab5db6fddd /src/framework
parentFix most clippy lints, take more refeernces (diff)
downloadserenity-60613ef696b093dbbac3a4e9e033c226c5d358ea.tar.xz
serenity-60613ef696b093dbbac3a4e9e033c226c5d358ea.zip
Avoid an unwrap in args::parse_quotes
Diffstat (limited to 'src/framework')
-rw-r--r--src/framework/standard/args.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/framework/standard/args.rs b/src/framework/standard/args.rs
index f18b012..9334e4c 100644
--- a/src/framework/standard/args.rs
+++ b/src/framework/standard/args.rs
@@ -59,7 +59,7 @@ fn parse_quotes<T: FromStr>(s: &mut String, delimiter: &str) -> Result<T, T::Err
where T::Err: StdError {
// Fall back to `parse` if there're no quotes at the start.
- if s.chars().next().unwrap() != '"' {
+ if !s.starts_with('"') {
return parse::<T>(s, delimiter);
}