mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
parent
6dd3fa6a94
commit
0857c22f26
7 changed files with 17 additions and 17 deletions
|
@ -232,7 +232,7 @@ pub struct FnDescriptor {
|
|||
}
|
||||
|
||||
impl FnDescriptor {
|
||||
pub fn new_opt(node: ast::FnDef) -> Option<Self> {
|
||||
pub fn new(node: ast::FnDef) -> Option<Self> {
|
||||
let name = node.name()?.text().to_string();
|
||||
|
||||
// Strip the body out for the label.
|
||||
|
|
|
@ -362,7 +362,7 @@ impl AnalysisImpl {
|
|||
for (_, fs) in file_symbols {
|
||||
if fs.kind == FN_DEF {
|
||||
if let Some(fn_def) = find_node_at_offset(syntax, fs.node_range.start()) {
|
||||
if let Some(descriptor) = FnDescriptor::new_opt(fn_def) {
|
||||
if let Some(descriptor) = FnDescriptor::new(fn_def) {
|
||||
// If we have a calling expression let's find which argument we are on
|
||||
let mut current_parameter = None;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ pub struct JobToken {
|
|||
}
|
||||
|
||||
impl JobHandle {
|
||||
pub fn new_pair() -> (JobHandle, JobToken) {
|
||||
pub fn new() -> (JobHandle, JobToken) {
|
||||
let (sender_alive, receiver_alive) = bounded(0);
|
||||
let (sender_canceled, receiver_canceled) = bounded(0);
|
||||
let token = JobToken {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue