fix compile error,res args add type (#839)

* fix compile error,res add type

* update .gitignore

* fix compile error

* fix compile error
This commit is contained in:
baoyachi. Aka Rust Hairy crabs 2022-07-05 16:04:11 +08:00 committed by GitHub
parent e0eb8ecf69
commit beef8211d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@ -2,4 +2,5 @@ target
Cargo.lock Cargo.lock
*.sublime* *.sublime*
.vscode .vscode
.idea/* .idea/*
*/.idea/*

View File

@ -635,7 +635,7 @@ where
/// Ensure the type implements this method /// Ensure the type implements this method
fn try_get_from_json(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError> { fn try_get_from_json(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError> {
let column = format!("{}{}", pre, col); let column = format!("{}{}", pre, col);
let res = match &res.row { let res: Result<_, _> = match &res.row {
#[cfg(feature = "sqlx-mysql")] #[cfg(feature = "sqlx-mysql")]
QueryResultRow::SqlxMySql(row) => { QueryResultRow::SqlxMySql(row) => {
use sqlx::Row; use sqlx::Row;