$ cargo build
Compiling playground v0.1.0 (/home/explorer/playground)
warning: unused variable: `input`
--> src/main.rs:283:49
|
283 | pub async fn execute(&self, input: &PlayerInput) -> Result<Player, String> {
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_input`
|
= note: `#[warn(unused_variables)]` on by default

warning: variable does not need to be mutable
--> src/main.rs:131:21
|
131 | let mut tx = self.pool.begin().await.unwrap();
| ----^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default

warning: variable does not need to be mutable
--> src/main.rs:246:21
|
246 | let mut tx = &"fake_transaction".to_string();
| ----^^
| |
| help: remove this `mut`

error[E0515]: cannot return value referencing temporary value
--> src/main.rs:241:82
|
241 | ) -> Result<Box<dyn crate::services::commands::Transaction>, String> {
| __________________________________________________________________________________^
242 | | println!("start_transaction inmemory repo");
243 | |
244 | | // let mut tx = self.pool.begin().await.unwrap();
245 | |
246 | | let mut tx = &"fake_transaction".to_string();
| | ------------------------------ temporary value created here
247 | |
248 | | Ok(Box::new(Transaction { tx }))
249 | | }
| |_____________^ returns a value referencing data owned by the current function

For more information about this error, try `rustc --explain E0515`.
warning: `playground` (bin "playground") generated 3 warnings
error: could not compile `playground` (bin "playground") due to previous error; 3 warnings emitted