From 4b7f473223a939b702b89b6ef4db59bdbfff32d4 Mon Sep 17 00:00:00 2001 From: kjeremy Date: Wed, 8 Jul 2020 09:45:29 -0400 Subject: Clippy perf warnings --- crates/ra_proc_macro_srv/src/dylib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_proc_macro_srv') diff --git a/crates/ra_proc_macro_srv/src/dylib.rs b/crates/ra_proc_macro_srv/src/dylib.rs index aa84e951c..1addbbd54 100644 --- a/crates/ra_proc_macro_srv/src/dylib.rs +++ b/crates/ra_proc_macro_srv/src/dylib.rs @@ -45,7 +45,7 @@ fn find_registrar_symbol(file: &Path) -> io::Result> { // https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/dlsym.3.html // Unlike other dyld API's, the symbol name passed to dlsym() must NOT be // prepended with an underscore. - if s.name.starts_with("_") { + if s.name.starts_with('_') { &s.name[1..] } else { &s.name -- cgit v1.2.3