Skip to content

Comments

Add Clone to std::time::Duration#16519

Closed
apoelstra wants to merge 1 commit intorust-lang:masterfrom
apoelstra:patch-1
Closed

Add Clone to std::time::Duration#16519
apoelstra wants to merge 1 commit intorust-lang:masterfrom
apoelstra:patch-1

Conversation

@apoelstra
Copy link
Contributor

This is needed to derive Clone on structures containing durations.

@japaric
Copy link
Contributor

japaric commented Aug 15, 2014

Duration already implements Show. So, it shouldn't need the #[deriving(Show)], rigth?

@apoelstra
Copy link
Contributor Author

Ugh, yes. Sorry, that's what I get for using the github editor to make PRs..

@apoelstra apoelstra changed the title Add Clone and Show to std::time::Duration Add Cloneto std::time::Duration Aug 15, 2014
@apoelstra apoelstra changed the title Add Cloneto std::time::Duration Add Clone to std::time::Duration Aug 15, 2014
This is needed to derive Clone for types containing Durations.
bors added a commit that referenced this pull request Aug 16, 2014
This is needed to derive Clone on structures containing durations.
@bors bors closed this Aug 16, 2014
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this pull request Feb 11, 2024
Enable some minor lints that we should tackles (take2)

This enables these lints:

- borrowed_box
- derived_hash_with_manual_eq
- forget_non_drop
- needless_doctest_main
flip1995 pushed a commit to flip1995/rust that referenced this pull request Feb 19, 2026
)

Closes rust-lang/rust-clippy#16515

changelog: [`iter_kv_map`] extend to cover `flat_map` and `filter_map`
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.

4 participants