Skip to content

Commit a2ad7bb

Browse files
cursoragentlovasoa
andcommitted
Refactor: Move odbc import to top of file
Co-authored-by: contact <[email protected]>
1 parent 6790c50 commit a2ad7bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webserver/database/connect.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ use crate::{
88
};
99
use anyhow::Context;
1010
use futures_util::future::BoxFuture;
11+
#[cfg(feature = "odbc")]
12+
use sqlx::odbc::OdbcConnectOptions;
1113
use sqlx::{
1214
any::{Any, AnyConnectOptions, AnyKind},
1315
pool::PoolOptions,
1416
sqlite::{Function, SqliteConnectOptions, SqliteFunctionCtx},
1517
ConnectOptions, Connection, Executor,
1618
};
17-
#[cfg(feature = "odbc")]
18-
use sqlx::odbc::OdbcConnectOptions;
1919

2020
impl Database {
2121
pub async fn init(config: &AppConfig) -> anyhow::Result<Self> {

0 commit comments

Comments
 (0)