Skip to content
Snippets Groups Projects
Verified Commit 2d4cac2f authored by Vincent Lafeychine's avatar Vincent Lafeychine
Browse files

clippy: Fix inefficient_to_string

parent 494ffd0a
No related branches found
No related tags found
1 merge request!44Fix most of `clippy::pedantic`
......@@ -32,7 +32,6 @@ rustflags = [
"-Aclippy::string_lit_as_bytes",
# clippy::pedantic
"-Aclippy::inefficient_to_string",
"-Aclippy::items_after_statements",
"-Aclippy::manual_let_else",
"-Aclippy::manual_string_new",
......
......@@ -83,7 +83,7 @@ pub struct FunctionShim<'a> {
impl<'a> From<FunctionShim<'a>> for ShimFunctionEntry {
fn from(shim: FunctionShim<'a>) -> Self {
Self {
path: shim.path.iter().map(|x| x.to_string()).collect(),
path: shim.path.iter().map(|x| (*x).to_string()).collect(),
kind: if shim.is_method { "method".to_string() } else { "function".to_string() },
name: shim.name,
spec: shim.spec_name,
......@@ -124,7 +124,7 @@ pub struct AdtShim<'a> {
impl<'a> From<AdtShim<'a>> for ShimAdtEntry {
fn from(shim: AdtShim<'a>) -> Self {
Self {
path: shim.path.iter().map(|x| x.to_string()).collect(),
path: shim.path.iter().map(|x| (*x).to_string()).collect(),
kind: "adt".to_string(),
syntype: shim.syn_type,
semtype: shim.sem_type,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment