From af04d45d32b5d9bdf949beb17152ef78dd4a0523 Mon Sep 17 00:00:00 2001 From: Chris Hopman Date: Fri, 10 Apr 2020 13:41:11 -0700 Subject: Change missing impl assist to use todo!() instead of unimplemented() todo!() "Indicates unfinished code" (https://doc.rust-lang.org/std/macro.todo.html) Rust documentation provides further clarification: > The difference between unimplemented! and todo! is that while todo! > conveys an intent of implementing the functionality later and the > message is "not yet implemented", unimplemented! makes no such claims. todo!() seems more appropriate for assists that insert missing impls. --- docs/user/assists.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/user/assists.md') diff --git a/docs/user/assists.md b/docs/user/assists.md index 754131f6f..cc42169d8 100644 --- a/docs/user/assists.md +++ b/docs/user/assists.md @@ -175,7 +175,7 @@ trait Trait { } impl Trait for () { - fn foo(&self) -> u32 { unimplemented!() } + fn foo(&self) -> u32 { todo!() } } ``` -- cgit v1.2.3