error[E0716]: temporary value dropped while borrowed --> src/mt.rs:165:9 | 162 | if let Err(e) = sqlx::query!( | _____________________- 163 | | "INSERT INTO mt_subs (name, com_id, author, author_id, server, state) VALUES (?, ?, ?, ?, ?, ?)", 164 | | s.name, 165 | | s.com_id.to_string(), | | ^^^^^^^^^^^^^^^^^^^^ creates a temporary which is freed while still in use ... | 169 | | s.state as i32 170 | | ).execute(&mut t).await {} | | - ------- borrow later used by call | |_____| | temporary value is freed at the end of this statement | = note: consider using a `let` binding to create a longer lived value error[E0716]: temporary value dropped while borrowed --> src/mt.rs:167:9 | 162 | if let Err(e) = sqlx::query!( | _____________________- 163 | | "INSERT INTO mt_subs (name, com_id, author, author_id, server, state) VALUES (?, ?, ?, ?, ?, ?)", 164 | | s.name, 165 | | s.com_id.to_string(), 166 | | s.author, 167 | | s.author_id.to_string(), | | ^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary which is freed while still in use 168 | | s.server, 169 | | s.state as i32 170 | | ).execute(&mut t).await {} | | - ------- borrow later used by call | |_____| | temporary value is freed at the end of this statement | = note: consider using a `let` binding to create a longer lived value error[E0716]: temporary value dropped while borrowed --> src/mt.rs:169:9 | 162 | if let Err(e) = sqlx::query!( | _____________________- 163 | | "INSERT INTO mt_subs (name, com_id, author, author_id, server, state) VALUES (?, ?, ?, ?, ?, ?)", 164 | | s.name, 165 | | s.com_id.to_string(), ... | 169 | | s.state as i32 | | ^^^^^^^^^^^^^^ creates a temporary which is freed while still in use 170 | | ).execute(&mut t).await {} | | - ------- borrow later used by call | |_____| | temporary value is freed at the end of this statement | = note: consider using a `let` binding to create a longer lived value