diff options
author | Chris Hopman <[email protected]> | 2020-04-10 21:41:11 +0100 |
---|---|---|
committer | Chris Hopman <[email protected]> | 2020-04-10 21:56:12 +0100 |
commit | af04d45d32b5d9bdf949beb17152ef78dd4a0523 (patch) | |
tree | 67eb9999b5f13e9c0a06b36e4fc50e54502f640d /docs/user | |
parent | ca9a5dd1654cc0d54ed5b2bb71ec8ed559470276 (diff) |
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.
Diffstat (limited to 'docs/user')
-rw-r--r-- | docs/user/assists.md | 2 |
1 files changed, 1 insertions, 1 deletions
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<T> { | |||
175 | } | 175 | } |
176 | 176 | ||
177 | impl Trait<u32> for () { | 177 | impl Trait<u32> for () { |
178 | fn foo(&self) -> u32 { unimplemented!() } | 178 | fn foo(&self) -> u32 { todo!() } |
179 | 179 | ||
180 | } | 180 | } |
181 | ``` | 181 | ``` |