rustls / rustls-ffi

Use Rustls from any language
Other
124 stars 31 forks source link

rename to_arc to clone_arc #363

Closed jsha closed 7 months ago

jsha commented 7 months ago

to_arc converts a *const C into an Option<Arc<T>>. It had a lot of verbiage to explain what it was doing with reference counts. I think the conceptual model becomes a lot simpler if we rename the function to reflect what it is really doing: cloning the arc.

jsha commented 7 months ago

Looks like tests are failing with possibly a crates.io outage:

error: failed to download from `[https://crates.io/api/v1/crates/spin/0.9.8/download`](https://crates.io/api/v1/crates/spin/0.9.8/download%60)

Status is 🍏 though. Will try again shortly.