Skip to content

Commit

Permalink
refactor: remove unnecessary type casting for port parameter in Dump …
Browse files Browse the repository at this point in the history
…methods
  • Loading branch information
Kremilly committed Dec 15, 2024
1 parent 799ce63 commit 1d39086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/dump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl Dump {
pub fn import(&self) {
Import::new(
&self.host,
self.port as u16,
self.port,
&self.user,
&self.password,
&self.dbname,
Expand All @@ -149,7 +149,7 @@ impl Dump {
pub fn transfer(&self) {
Transfer::new(
&self.host,
self.port as u16,
self.port,
&self.user,
&self.password,
&self.dbname,
Expand Down

0 comments on commit 1d39086

Please sign in to comment.