Skip to content

Commit

Permalink
Remove outdated comment about hashing collections
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Sep 18, 2024
1 parent 5780702 commit 55a1cff
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crates/objc2/src/runtime/nsobject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ unsafe impl DowncastTarget for NSObject {}
///
/// Like with [other protocols](ProtocolType), the type must represent a class
/// that implements the `NSObject` protocol.
//
// Note: Most of the methods on this must remain `unsafe` to override,
// including `isEqual` and `hash`, since hashing collections like
// `NSDictionary` and `NSSet` rely on it being stable.
#[allow(non_snake_case)] // Follow the naming scheme in framework crates
pub unsafe trait NSObjectProtocol {
/// Check whether the object is equal to an arbitrary other object.
Expand Down

0 comments on commit 55a1cff

Please sign in to comment.