Skip to content

Conversation

@emberian
Copy link
Contributor

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason these can't be methods on RawPtr?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for RawPtr::read()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Reproduced here)

Changing ptr::read to RawPtr::read is extremely inconvenient because, with ptr::read, &T will be coerced, whereas it will not be when it is a method. This introduces quite unnecessary casts. I do not wish to change it.

@huonw
Copy link
Contributor

huonw commented Feb 15, 2014

r=me with the import in the right spot

bors added a commit that referenced this pull request Feb 15, 2014
@bors bors closed this Feb 15, 2014
chris-morgan added a commit to chris-morgan/ncurses-rs that referenced this pull request Feb 16, 2014
jeaye pushed a commit to jeaye/ncurses-rs that referenced this pull request Feb 16, 2014
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this pull request Mar 21, 2024
Handle false positive with `map_clone` lint

### Summary

- Fixes rust-lang/rust-clippy#12271
- (This is my first contribution to clippy and any suggestion would be appreciated)

changelog: [`map_clone`]: Handle false positive with `map_clone` lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants