The ExaWebSocket::get_or_prepare() method currently does a double-lookup in the LRU cache due to a borrow-checker limitation.
While using unsafe would solve the problem soundly, it felt somewhat wrong given sqlx's no unsafe paradigm.
This issue is created to track the development of the limitation in the hope that it can get overcome someday in safe Rust.
The
ExaWebSocket::get_or_prepare()
method currently does a double-lookup in theLRU
cache due to a borrow-checker limitation.While using
unsafe
would solve the problem soundly, it felt somewhat wrong givensqlx
's no unsafe paradigm. This issue is created to track the development of the limitation in the hope that it can get overcome someday in safe Rust.