You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
objc added a class macro which caches access to the class. So basically we can simply replace all Class::get("x").unwrap() with class!(x). The unwrap isn't needed anymore because the macro will panic if it fails. Note also that this macro should eventually (through procedural macros) be able to link directly to the class.
objc added a
class
macro which caches access to the class. So basically we can simply replace allClass::get("x").unwrap()
withclass!(x)
. Theunwrap
isn't needed anymore because the macro will panic if it fails. Note also that this macro should eventually (through procedural macros) be able to link directly to the class.I'd be happy to send a PR which performs this replacement, but cases like https://github.com/tomaka/winit/blob/master/src/platform/ios/mod.rs#L173 need to be clarified (do these ever actually fail?).
The text was updated successfully, but these errors were encountered: