This commit is contained in:
1hakusai1 2025-01-14 17:43:28 +09:00
parent ea87eab4ff
commit c14cdcf5cc

View file

@ -149,7 +149,7 @@ fn find_from_definition(
let (search_method, search_trait, return_type) = match method_call.name_ref()?.text().as_str() {
"into" => ("from", FamousDefs(sema, krate).core_convert_From()?, return_type),
// If the mthod is try_into() or parse(), return_type is Result<T, Error>.
// If the method is try_into() or parse(), return_type is Result<T, Error>.
// Get T from type arguments of Result<T, Error>.
"try_into" => (
"try_from",