Skip to content

Commit 650ef81

Browse files
committed
rename inner to conn
1 parent 0be7f70 commit 650ef81

File tree

1 file changed

+4
-4
lines changed
  • sqlx-core/src/odbc/connection

1 file changed

+4
-4
lines changed

sqlx-core/src/odbc/connection/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mod executor;
1919
/// thread-pool via `spawn_blocking` and synchronize access with a mutex.
2020
#[derive(Debug)]
2121
pub struct OdbcConnection {
22-
pub(crate) inner: Arc<Mutex<OdbcConn>>,
22+
pub(crate) conn: Arc<Mutex<OdbcConn>>,
2323
}
2424

2525
impl OdbcConnection {
@@ -29,7 +29,7 @@ impl OdbcConnection {
2929
T: Send + 'static,
3030
F: FnOnce(&mut OdbcConn) -> Result<T, Error> + Send + 'static,
3131
{
32-
let inner = self.inner.clone();
32+
let inner = self.conn.clone();
3333
run_blocking(move || {
3434
let mut conn = inner.lock().unwrap();
3535
f(&mut conn)
@@ -44,7 +44,7 @@ impl OdbcConnection {
4444
E: std::fmt::Display,
4545
F: FnOnce(&mut OdbcConn) -> Result<T, E> + Send + 'static,
4646
{
47-
let inner = self.inner.clone();
47+
let inner = self.conn.clone();
4848
run_blocking(move || {
4949
let mut conn = inner.lock().unwrap();
5050
f(&mut conn).map_err(|e| Error::Protocol(format!("{}: {}", ctx, e)))
@@ -60,7 +60,7 @@ impl OdbcConnection {
6060
.await?;
6161

6262
Ok(Self {
63-
inner: Arc::new(Mutex::new(conn)),
63+
conn: Arc::new(Mutex::new(conn)),
6464
})
6565
}
6666

0 commit comments

Comments
 (0)