Skip to content

Commit 997765f

Browse files
committed
Updates for rust-bindgen 1883
1 parent 8b6befb commit 997765f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ cargo-bundle's support for bundling crate examples.
3131
[build-dependencies.bindgen]
3232
default-features = false
3333
git = "https://github.com/simlay/rust-bindgen.git"
34-
branch = "objc-category-inheritance"
34+
branch = "objc-category-inheritance-and-no-copy-structs"
3535
#version = "0.54.1"
3636
#path = "../../rust-bindgen/"
3737

examples/rect.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ fn add_views(root_view: &UIView) {
151151
root_view.addSubview_(UIView(input.0));
152152
}
153153
unsafe {
154-
let switch = UISwitch(uikit_sys::IUISwitch::initWithFrame_(UISwitch::alloc(),
154+
let switch = UISwitch(uikit_sys::IUISwitch::initWithFrame_(&UISwitch::alloc(),
155155
CGRect {
156156
origin: CGPoint { x: 10.0, y: 80.0 },
157157
size: CGSize {
@@ -218,9 +218,9 @@ fn add_counte_label(count: i64) -> UIView {
218218
label
219219

220220
};
221-
//label
222221
UIView(label.0)
223222
}
223+
224224
fn debug_init() {
225225
color_backtrace::install_with_settings(
226226
color_backtrace::Settings::new().verbosity(color_backtrace::Verbosity::Full),

0 commit comments

Comments
 (0)