Apply suggestions from code review

Co-authored-by: Yuki Okushi <jtitor@2k36.org>
pull/292/head
Thirds 4 years ago committed by GitHub
parent d0a45b752c
commit f9a9c9fb60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -88,7 +88,7 @@ However, `bar_cloned` actually has type `&Container<T>`. Surely this doesn't mak
sense - we added `#[derive(Clone)]` to `Container`, so it must implement `Clone`!
Looking closer, the code generated by the `derive` macro is (roughly):
```rust.ignore
```rust,ignore
impl<T> Clone for Container<T> where T: Clone {
fn clone(&self) -> Self {
Self(Arc::clone(&self.0))

Loading…
Cancel
Save