Results 11 comments of gftea

I agree with you, the error is just because it is not `Unpin`

Hi, Use case as below, use expect to login by ssh and run batch commands, then give ssh control back to user so that user can start to work on...

Hi Skalle, If providing API as pexpect, the use case will be as below e := Spawn(bla) .... e.Send("User") e.Expect(bla) e.Send("pass123) e.Expect("Logged in") e.Interact() // this gives control of the...

image build works , just a error message

If heap::deallocate is to free heap, why need to calling ptr::read which will also drop the memory

@botahamec , thanks, but in our example, why `ptr::read` needed?, it just "Reads the value from src without moving it. This leaves the memory in src unchanged." ``` ptr::read(self.ptr); //...

After the value drop, it should be uninitialized, we should not access it after that, so I think we should deallocate first before dropping ptr

> it is being used to drop the value, if needed. Just keep in mind that dropping the value doesn't free the memory that it's in. sorry, I guess I...

after re-reading https://doc.rust-lang.org/nomicon/destructors.html, I think it will be more clear to explain further below * for non-raw pointer field, rust will call drop automatically * because `self.ptr` is raw pointer,...