Compiling atuin-client v0.6.2 (/Users/yuvipanda/code/atuin/atuin-client)
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:141:19
|
141 | let res = sqlx::query("select * from history where id = ?1")
| ___________________^
142 | | .bind(id)
143 | | .map(Self::query_history)
144 | | .fetch_one(&self.pool)
| |__________________________________^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:144:14
|
144 | .fetch_one(&self.pool)
| ^^^^^^^^^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:143:14
|
143 | .map(Self::query_history)
| ^^^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0277]: expected a `std::ops::FnMut<(sqlx::sqlite::SqliteRow,)>` closure, found `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
--> atuin-client/src/database.rs:141:19
|
141 | let res = sqlx::query("select * from history where id = ?1")
| ___________________^
142 | | .bind(id)
143 | | .map(Self::query_history)
144 | | .fetch_one(&self.pool)
145 | | .await?;
| |__________________^ expected an `FnMut<(sqlx::sqlite::SqliteRow,)>` closure, found `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
|
::: /Users/yuvipanda/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.2/src/query.rs:121:27
|
121 | ) -> Map<'q, DB, impl FnMut(DB::Row) -> Result<O, Error> + Send, A>
| ---------------------------------- required by this bound in `sqlx::query::Query<'q, DB, A>::map::{{opaque}}#0`
|
= help: the trait `std::ops::FnMut<(sqlx::sqlite::SqliteRow,)>` is not implemented for `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:202:19
|
202 | let res = sqlx::query(query.as_str())
| ___________________^
203 | | .map(Self::query_history)
204 | | .fetch_all(&self.pool)
| |__________________________________^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:204:14
|
204 | .fetch_all(&self.pool)
| ^^^^^^^^^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:203:14
|
203 | .map(Self::query_history)
| ^^^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0277]: expected a `std::ops::FnMut<(sqlx::sqlite::SqliteRow,)>` closure, found `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
--> atuin-client/src/database.rs:202:19
|
202 | let res = sqlx::query(query.as_str())
| ___________________^
203 | | .map(Self::query_history)
204 | | .fetch_all(&self.pool)
205 | | .await?;
| |__________________^ expected an `FnMut<(sqlx::sqlite::SqliteRow,)>` closure, found `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
|
::: /Users/yuvipanda/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.2/src/query.rs:121:27
|
121 | ) -> Map<'q, DB, impl FnMut(DB::Row) -> Result<O, Error> + Send, A>
| ---------------------------------- required by this bound in `sqlx::query::Query<'q, DB, A>::map::{{opaque}}#0`
|
= help: the trait `std::ops::FnMut<(sqlx::sqlite::SqliteRow,)>` is not implemented for `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:217:19
|
217 | let res = sqlx::query(
| ___________________^
218 | | "select * from history where timestamp >= ?1 and timestamp <= ?2 order by timestamp asc",
219 | | )
220 | | .bind(from)
221 | | .bind(to)
222 | | .map(Self::query_history)
223 | | .fetch_all(&self.pool)
| |______________________________^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:223:10
|
223 | .fetch_all(&self.pool)
| ^^^^^^^^^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:222:14
|
222 | .map(Self::query_history)
| ^^^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0277]: expected a `std::ops::FnMut<(sqlx::sqlite::SqliteRow,)>` closure, found `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
--> atuin-client/src/database.rs:217:19
|
217 | let res = sqlx::query(
| ___________________^
218 | | "select * from history where timestamp >= ?1 and timestamp <= ?2 order by timestamp asc",
219 | | )
220 | | .bind(from)
... |
223 | | .fetch_all(&self.pool)
224 | | .await?;
| |______________^ expected an `FnMut<(sqlx::sqlite::SqliteRow,)>` closure, found `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
|
::: /Users/yuvipanda/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.2/src/query.rs:121:27
|
121 | ) -> Map<'q, DB, impl FnMut(DB::Row) -> Result<O, Error> + Send, A>
| ---------------------------------- required by this bound in `sqlx::query::Query<'q, DB, A>::map::{{opaque}}#0`
|
= help: the trait `std::ops::FnMut<(sqlx::sqlite::SqliteRow,)>` is not implemented for `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:231:13
|
231 | / sqlx::query("select * from history where duration >= 0 order by timestamp asc limit 1")
232 | | .map(Self::query_history)
233 | | .fetch_one(&self.pool)
| |______________________________________^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:233:18
|
233 | .fetch_one(&self.pool)
| ^^^^^^^^^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:232:18
|
232 | .map(Self::query_history)
| ^^^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0277]: expected a `std::ops::FnMut<(sqlx::sqlite::SqliteRow,)>` closure, found `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
--> atuin-client/src/database.rs:231:13
|
231 | / sqlx::query("select * from history where duration >= 0 order by timestamp asc limit 1")
232 | | .map(Self::query_history)
233 | | .fetch_one(&self.pool)
234 | | .await?;
| |______________________^ expected an `FnMut<(sqlx::sqlite::SqliteRow,)>` closure, found `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
|
::: /Users/yuvipanda/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.2/src/query.rs:121:27
|
121 | ) -> Map<'q, DB, impl FnMut(DB::Row) -> Result<O, Error> + Send, A>
| ---------------------------------- required by this bound in `sqlx::query::Query<'q, DB, A>::map::{{opaque}}#0`
|
= help: the trait `std::ops::FnMut<(sqlx::sqlite::SqliteRow,)>` is not implemented for `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:240:19
|
240 | let res = sqlx::query(
| ___________________^
241 | | "select * from history where duration >= 0 order by timestamp desc limit 1",
242 | | )
243 | | .map(Self::query_history)
244 | | .fetch_one(&self.pool)
| |______________________________^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:244:10
|
244 | .fetch_one(&self.pool)
| ^^^^^^^^^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:243:10
|
243 | .map(Self::query_history)
| ^^^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0277]: expected a `std::ops::FnMut<(sqlx::sqlite::SqliteRow,)>` closure, found `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
--> atuin-client/src/database.rs:240:19
|
240 | let res = sqlx::query(
| ___________________^
241 | | "select * from history where duration >= 0 order by timestamp desc limit 1",
242 | | )
243 | | .map(Self::query_history)
244 | | .fetch_one(&self.pool)
245 | | .await?;
| |______________^ expected an `FnMut<(sqlx::sqlite::SqliteRow,)>` closure, found `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
|
::: /Users/yuvipanda/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.2/src/query.rs:121:27
|
121 | ) -> Map<'q, DB, impl FnMut(DB::Row) -> Result<O, Error> + Send, A>
| ---------------------------------- required by this bound in `sqlx::query::Query<'q, DB, A>::map::{{opaque}}#0`
|
= help: the trait `std::ops::FnMut<(sqlx::sqlite::SqliteRow,)>` is not implemented for `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:251:19
|
251 | let res = sqlx::query(
| ___________________^
252 | | "select * from history where timestamp < ?1 order by timestamp desc limit ?2",
253 | | )
254 | | .bind(timestamp.timestamp_nanos())
255 | | .bind(count)
256 | | .map(Self::query_history)
257 | | .fetch_all(&self.pool)
| |______________________________^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:257:10
|
257 | .fetch_all(&self.pool)
| ^^^^^^^^^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:256:10
|
256 | .map(Self::query_history)
| ^^^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0277]: expected a `std::ops::FnMut<(sqlx::sqlite::SqliteRow,)>` closure, found `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
--> atuin-client/src/database.rs:251:19
|
251 | let res = sqlx::query(
| ___________________^
252 | | "select * from history where timestamp < ?1 order by timestamp desc limit ?2",
253 | | )
254 | | .bind(timestamp.timestamp_nanos())
... |
257 | | .fetch_all(&self.pool)
258 | | .await?;
| |______________^ expected an `FnMut<(sqlx::sqlite::SqliteRow,)>` closure, found `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
|
::: /Users/yuvipanda/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.2/src/query.rs:121:27
|
121 | ) -> Map<'q, DB, impl FnMut(DB::Row) -> Result<O, Error> + Send, A>
| ---------------------------------- required by this bound in `sqlx::query::Query<'q, DB, A>::map::{{opaque}}#0`
|
= help: the trait `std::ops::FnMut<(sqlx::sqlite::SqliteRow,)>` is not implemented for `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:275:19
|
275 | let res = sqlx::query(
| ___________________^
276 | | format!(
277 | | "select * from history h
278 | | where command like ?1 || '%'
... |
289 | | .map(Self::query_history)
290 | | .fetch_all(&self.pool)
| |______________________________^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:290:10
|
290 | .fetch_all(&self.pool)
| ^^^^^^^^^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:289:10
|
289 | .map(Self::query_history)
| ^^^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0277]: expected a `std::ops::FnMut<(sqlx::sqlite::SqliteRow,)>` closure, found `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
--> atuin-client/src/database.rs:275:19
|
275 | let res = sqlx::query(
| ___________________^
276 | | format!(
277 | | "select * from history h
278 | | where command like ?1 || '%'
... |
290 | | .fetch_all(&self.pool)
291 | | .await?;
| |______________^ expected an `FnMut<(sqlx::sqlite::SqliteRow,)>` closure, found `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
|
::: /Users/yuvipanda/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.2/src/query.rs:121:27
|
121 | ) -> Map<'q, DB, impl FnMut(DB::Row) -> Result<O, Error> + Send, A>
| ---------------------------------- required by this bound in `sqlx::query::Query<'q, DB, A>::map::{{opaque}}#0`
|
= help: the trait `std::ops::FnMut<(sqlx::sqlite::SqliteRow,)>` is not implemented for `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:297:19
|
297 | let res = sqlx::query(query)
| ___________________^
298 | | .map(Self::query_history)
299 | | .fetch_all(&self.pool)
| |__________________________________^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:299:14
|
299 | .fetch_all(&self.pool)
| ^^^^^^^^^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0271]: type mismatch resolving `<sqlx::Sqlite as sqlx::Database>::Row == <sqlx::Sqlite as sqlx::Database>::Row`
--> atuin-client/src/database.rs:298:14
|
298 | .map(Self::query_history)
| ^^^ expected struct `sqlx::sqlite::SqliteRow`, found associated type
|
= note: expected struct `sqlx::sqlite::SqliteRow`
found associated type `<sqlx::Sqlite as sqlx::Database>::Row`
= help: consider constraining the associated type `<sqlx::Sqlite as sqlx::Database>::Row` to `sqlx::sqlite::SqliteRow`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0277]: expected a `std::ops::FnMut<(sqlx::sqlite::SqliteRow,)>` closure, found `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
--> atuin-client/src/database.rs:297:19
|
297 | let res = sqlx::query(query)
| ___________________^
298 | | .map(Self::query_history)
299 | | .fetch_all(&self.pool)
300 | | .await?;
| |__________________^ expected an `FnMut<(sqlx::sqlite::SqliteRow,)>` closure, found `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
|
::: /Users/yuvipanda/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.2/src/query.rs:121:27
|
121 | ) -> Map<'q, DB, impl FnMut(DB::Row) -> Result<O, Error> + Send, A>
| ---------------------------------- required by this bound in `sqlx::query::Query<'q, DB, A>::map::{{opaque}}#0`
|
= help: the trait `std::ops::FnMut<(sqlx::sqlite::SqliteRow,)>` is not implemented for `impl std::marker::Send+std::ops::FnMut<(<sqlx::Sqlite as sqlx::Database>::Row,)>`
error: aborting due to 32 previous errors
Some errors have detailed explanations: E0271, E0277.
For more information about an error, try `rustc --explain E0271`.
error: could not compile `atuin-client`.
To learn more, run the command again with --verbose.