From 6799088579fec4400eee897aba13e9d6a3ac8f29 Mon Sep 17 00:00:00 2001 From: Domantas Jadenkus Date: Sat, 13 Feb 2021 14:46:41 +0200 Subject: update doc --- crates/assists/src/handlers/generate_from_impl_for_enum.rs | 2 +- crates/assists/src/tests/generated.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/assists') diff --git a/crates/assists/src/handlers/generate_from_impl_for_enum.rs b/crates/assists/src/handlers/generate_from_impl_for_enum.rs index 8e68ebc7a..95dc9c34a 100644 --- a/crates/assists/src/handlers/generate_from_impl_for_enum.rs +++ b/crates/assists/src/handlers/generate_from_impl_for_enum.rs @@ -21,7 +21,7 @@ use crate::{AssistContext, AssistId, AssistKind, Assists}; // // impl From for A { // fn from(v: u32) -> Self { -// A::One(v) +// Self::One(v) // } // } // ``` diff --git a/crates/assists/src/tests/generated.rs b/crates/assists/src/tests/generated.rs index 6f2b22bc2..0516deaff 100644 --- a/crates/assists/src/tests/generated.rs +++ b/crates/assists/src/tests/generated.rs @@ -499,7 +499,7 @@ enum A { One(u32) } impl From for A { fn from(v: u32) -> Self { - A::One(v) + Self::One(v) } } "#####, -- cgit v1.2.3