where possible, pass slices instead of &Vec or &String (clippy::ptr_arg)
This commit is contained in:
@@ -3483,7 +3483,7 @@ enum AssocItemLink<'a> {
|
||||
}
|
||||
|
||||
impl<'a> AssocItemLink<'a> {
|
||||
fn anchor(&self, id: &'a String) -> Self {
|
||||
fn anchor(&self, id: &'a str) -> Self {
|
||||
match *self {
|
||||
AssocItemLink::Anchor(_) => AssocItemLink::Anchor(Some(&id)),
|
||||
ref other => *other,
|
||||
|
||||
Reference in New Issue
Block a user