You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, it's better to use &'static lifetime to avoid running the clone() method. The clone() method could take a long time if its contents, here, the given file path is an incredible long.
The main thread must have the file path array as long as the program runs: its lifetime is &'static. And it's the reason why I couldn't use move.
The text was updated successfully, but these errors were encountered:
Current code uses
clone()
method to sendPathbuf
.slide-show-rs/src/main.rs
Lines 291 to 293 in ac564d3
Here, it's better to use
&'static
lifetime to avoid running theclone()
method. Theclone()
method could take a long time if its contents, here, the given file path is an incredible long.The main thread must have the file path array as long as the program runs: its lifetime is
&'static
. And it's the reason why I couldn't usemove
.The text was updated successfully, but these errors were encountered: