Skip to content

Commit

Permalink
chore: bump keepass-rs version
Browse files Browse the repository at this point in the history
  • Loading branch information
louib committed Jul 31, 2023
1 parent 4a1a667 commit bf20f51
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
outputHashes = {
# This hash need to be updated everytime you bump the version of the keepass-rs
# library.
"keepass-0.6.1" = "sha256-2Xgm87omjJ8ciF7nF6C7lW9eweN+NAfJcxm0M9pQoDI=";
"keepass-0.6.1" = "sha256-cNCaimZAZGPIWHba1WqEJkGIBT60BCz6YrJG1yReY7k=";
};
};

Expand Down
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ fn main() -> Result<std::process::ExitCode> {
//
let mut destination_db = Database::open(
&mut destination_db_file,
DatabaseKey::with_password(&destination_db_password),
DatabaseKey::new().with_password(&destination_db_password),
)?;

let source_db = match args.same_credentials {
true => Database::open(
&mut source_db_file,
DatabaseKey::with_password(&destination_db_password),
DatabaseKey::new().with_password(&destination_db_password),
),
false => {
// TODO support keyfile
Expand All @@ -76,7 +76,7 @@ fn main() -> Result<std::process::ExitCode> {

Database::open(
&mut source_db_file,
DatabaseKey::with_password(&source_db_password),
DatabaseKey::new().with_password(&source_db_password),
)
}
}?;
Expand Down Expand Up @@ -113,7 +113,7 @@ fn main() -> Result<std::process::ExitCode> {
let mut destination_db_file = File::options().write(true).open(&destination_db_path)?;
destination_db.save(
&mut destination_db_file,
DatabaseKey::with_password(&destination_db_password),
DatabaseKey::new().with_password(&destination_db_password),
)?;
println!("Databases were merged successfully.");

Expand Down

0 comments on commit bf20f51

Please sign in to comment.