mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Fix some clippy lints in ide_completion
This commit is contained in:
parent
ccde0bcd1f
commit
9485d6efba
10 changed files with 34 additions and 41 deletions
|
@ -13,8 +13,8 @@ use crate::{
|
|||
},
|
||||
};
|
||||
|
||||
pub(crate) fn render_fn<'a>(
|
||||
ctx: RenderContext<'a>,
|
||||
pub(crate) fn render_fn(
|
||||
ctx: RenderContext<'_>,
|
||||
import_to_add: Option<ImportEdit>,
|
||||
local_name: Option<hir::Name>,
|
||||
fn_: hir::Function,
|
||||
|
@ -23,8 +23,8 @@ pub(crate) fn render_fn<'a>(
|
|||
Some(FunctionRender::new(ctx, None, local_name, fn_, false)?.render(import_to_add))
|
||||
}
|
||||
|
||||
pub(crate) fn render_method<'a>(
|
||||
ctx: RenderContext<'a>,
|
||||
pub(crate) fn render_method(
|
||||
ctx: RenderContext<'_>,
|
||||
import_to_add: Option<ImportEdit>,
|
||||
receiver: Option<hir::Name>,
|
||||
local_name: Option<hir::Name>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue