/var/tmp/beans-rs is stored on / on my system so the check keeps removing paths until we end up with / which is shorter than 2 causing a check failure.
Checking if its empty should be better.
Also removes the needless clone, transfering ownership when remove_path_head is invoked, since it allocates a new string.
/var/tmp/beans-rs
is stored on/
on my system so the check keeps removing paths until we end up with/
which is shorter than 2 causing a check failure.Checking if its empty should be better.
Also removes the needless clone, transfering ownership when
remove_path_head
is invoked, since it allocates a new string.