diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2022-04-27 14:08:52 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2022-04-29 15:03:45 -0400 |
commit | fead7107abc494ef051fd26357c21a546b49c7d9 (patch) | |
tree | 8605fc5e827abb03f2020193ba3f28ca2108147c /yjit/src/options.rs | |
parent | f8e4488e5e01c07cc8c139e6030a5dfca45b824c (diff) | |
download | ruby-fead7107abc494ef051fd26357c21a546b49c7d9.tar.gz |
YJIT: Adopt Clippy suggestions we like
This adopts most suggestions that rust-clippy is confident enough to
auto apply. The manual changes mostly fix manual if-lets and take
opportunities to use the `Default` trait on standard collections.
Co-authored-by: Kevin Newton <kddnewton@gmail.com>
Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>
Diffstat (limited to 'yjit/src/options.rs')
-rw-r--r-- | yjit/src/options.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/options.rs b/yjit/src/options.rs index 669ac52dbd..07c501a108 100644 --- a/yjit/src/options.rs +++ b/yjit/src/options.rs @@ -70,7 +70,7 @@ pub fn parse_option(str_ptr: *const std::os::raw::c_char) -> Option<()> { // Split the option name and value strings // Note that some options do not contain an assignment - let parts = opt_str.split_once("="); + let parts = opt_str.split_once('='); let (opt_name, opt_val) = match parts { Some((before_eq, after_eq)) => (before_eq, after_eq), None => (opt_str, ""), |