Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Conversation

@antoyo
Copy link
Member

@antoyo antoyo commented Oct 22, 2019

No description provided.

@antoyo
Copy link
Member Author

antoyo commented Oct 22, 2019

@sdroege @EPashkin @GuillaumeGomez I think this is ready for another round of review.

@sdroege sdroege mentioned this pull request Oct 22, 2019
43 tasks
@antoyo
Copy link
Member Author

antoyo commented Oct 23, 2019

Tests fail because I use ? in macros which is not supported in edition 2015.

@antoyo
Copy link
Member Author

antoyo commented Oct 23, 2019

So, there's a problem when implementing the trait in the other crates:
only traits defined in the current crate can be implemented for arbitrary types.

@sdroege
Copy link
Member

sdroege commented Oct 23, 2019

So, there's a problem when implementing the trait in the other crates:
only traits defined in the current crate can be implemented for arbitrary types.

You only have to implement it on the final type, not on all types in the class hierarchy. Otherwise you'd implement it multiple times for the same type anyway.

@sdroege
Copy link
Member

sdroege commented Nov 11, 2019

@antoyo You're going to work on the remaining parts?

@antoyo
Copy link
Member Author

antoyo commented Nov 11, 2019

@sdroege: I won't have time soon.

@sdroege sdroege force-pushed the feature/clone-macro branch from ff3a013 to 90eb5ec Compare November 12, 2019 10:53
@sdroege
Copy link
Member

sdroege commented Nov 12, 2019

Should be good to go now

@sdroege
Copy link
Member

sdroege commented Nov 12, 2019

@GuillaumeGomez Green!

@sdroege
Copy link
Member

sdroege commented Nov 13, 2019

@GuillaumeGomez Also let me know if you want me to merge it ;)

src/clone.rs Outdated
};
}

/// Macro for passing variables as strong or weak references into a closure.
Copy link
Member

Choose a reason for hiding this comment

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

"variables as strong" -> there is one extra whitespace after "variables".

src/clone.rs Outdated
/// returned.
///
/// ### Passing a strong reference
/// ```rust
Copy link
Member

Choose a reason for hiding this comment

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

Please add an empty line before the example (makes the code simpler to read).

src/clone.rs Outdated
/// ```
///
/// ### Passing a strong and weak reference
/// ```rust
Copy link
Member

Choose a reason for hiding this comment

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

Please add an empty line before the example (makes the code simpler to read).

src/clone.rs Outdated
/// ```
///
/// ### Providing a default return value if upgrading a weak reference fails
/// ```rust
Copy link
Member

Choose a reason for hiding this comment

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

Please add an empty line before the example (makes the code simpler to read).

@GuillaumeGomez GuillaumeGomez merged commit 5613e42 into gtk-rs:master Nov 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants