From d0e01661a5b7615b1e5bd55a072f45e430d26611 Mon Sep 17 00:00:00 2001 From: Lofty Date: Tue, 16 Jan 2024 02:01:04 +0000 Subject: [PATCH] rust: fix build error --- rust/rust.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/rust.cc b/rust/rust.cc index d0ec0efc..b59e1871 100644 --- a/rust/rust.cc +++ b/rust/rust.cc @@ -217,7 +217,7 @@ PortRef *npnr_netinfo_driver(NetInfo *net) uint32_t npnr_netinfo_users_leak(const NetInfo *net, const PortRef ***users) { auto size = net->users.entries(); - *users = new PortRef *[size]; + *users = new const PortRef *[size]; auto idx = 0; for (auto &item : net->users) { (*users)[idx] = &item;