Closed ultimaweapon closed 6 months ago
I don't know how to do this. The example doesn't map onto the our code.
By the way, don't you have the same problem with gutex guards? Maybe VS Code is incorrect or I don't understand something, but I don't think the lifetime here should be static.
I turned off inlay hint.
Ok, but is the 'static lifetime correct, or not?
After taking a look we have a bigger problem than a life time of two methods here. I'll close this issue and create a new one.
See https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_ptr for an example.
Also better to add document to the
IoVec
.