diff options
Diffstat (limited to 'src/tools/clippy/src/docs/needless_return.txt')
-rw-r--r-- | src/tools/clippy/src/docs/needless_return.txt | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/tools/clippy/src/docs/needless_return.txt b/src/tools/clippy/src/docs/needless_return.txt deleted file mode 100644 index 48782cb0c..000000000 --- a/src/tools/clippy/src/docs/needless_return.txt +++ /dev/null @@ -1,19 +0,0 @@ -### What it does -Checks for return statements at the end of a block. - -### Why is this bad? -Removing the `return` and semicolon will make the code -more rusty. - -### Example -``` -fn foo(x: usize) -> usize { - return x; -} -``` -simplify to -``` -fn foo(x: usize) -> usize { - x -} -```
\ No newline at end of file |