Uh oh!
There was an error while loading. Please reload this page.
Change result::map to consume the result - #5840
Conversation
This fixes the pretty printer from printing the obsolete syntax `pub impl...for...`.
erickt
commented
Apr 11, 2013
Just rebased this onto HEAD, and added a minor fix to the deriving code that fixes the visibility to be inherited instead of public on the impls. |
thestinger
commented
Apr 11, 2013
Could you copy the naming conventions from |
erickt
commented
Apr 11, 2013
@thestinger: I'd rather it be the other way around. I expect (without proof) that most uses of |
thestinger
commented
Apr 11, 2013
@erickt: that would be fine ( |
brson
commented
Apr 12, 2013
+1 to |
brson
commented
Apr 12, 2013
Let's do this for vectors too. |
thestinger
commented
Apr 13, 2013
@brson: I think the |
graydon
commented
Apr 13, 2013
+1 but it needs rebasing again :( |
erickt
commented
Apr 13, 2013
@brson: I was just about to submit an RFC to ask if we should change all the |
erickt
commented
Apr 13, 2013
Another option is to follow the style of |
erickt
commented
Apr 14, 2013
brson
commented
Apr 16, 2013
fwiw I'm not all that fond of |
graydon
commented
Apr 18, 2013
Yeah, |
erickt
commented
Apr 18, 2013
@graydon: I thought about getting rid of the Only requires one copy, whereas with I'd like to keep this optimization available. How about naming functions that share this pattern something like |
graydon
commented
Apr 22, 2013
ah! good point. yes. I am not sure what the fate of the term "copy" is in the world of "clone", but either term is fine by me. Consistency with whatever else is going on in clone-vs-copy terminology seems best to me. |
kud1ing
commented
Apr 25, 2013
Another option: Downside: But i think i'd prefer |
thestinger
commented
Apr 25, 2013
The method that's actually on vectors should just consume them and remove the elements in-place. There's a generic filter function in the |
catamorphism
commented
May 9, 2013
Needs rebasing yet again... |
catamorphism
commented
Jun 8, 2013
Closing old PRs. Reopen or file a new one if you have time to rebase it :-) |
Basic instruction for new contributors While answering a few questions to @AB1908, I realized, that our documentation could use some love. Especially the "Getting Started" part for new contributors. So I wrote together some instruction on how to get the toolchain and how to build and test Clippy. [Rendered](https://github.com/flip1995/rust-clippy/blob/basics/doc/basics.md) r? @phansch changelog: none
This changes
result::mapto use moves instead of copies to transform one result into another. This makes the function usable when result is wrapping uncopyable values.Also, it includes a minor cleanup of serialize.rs.