Skip to content

Using lock().unwrap().as_mut() instead of interact() to avoid using static lifetime for a &str #269

Closed Answered by bikeshedder
peter-scholtens asked this question in Q&A
Discussion options

You must be logged in to vote

You need to use a Box<str>, not a Box<&str>. If that gives you any headaches just use a String. The performance difference is negligible.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@peter-scholtens
Comment options

@bikeshedder
Comment options

@peter-scholtens
Comment options

@bikeshedder
Comment options

Answer selected by peter-scholtens
@bikeshedder
Comment options

@peter-scholtens
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
A-diesel Area: Diesel / deadpool-diesel
2 participants