Skip to content

Commit

Permalink
Clean up of silly mistakes, does not impact existing API
Browse files Browse the repository at this point in the history
  • Loading branch information
bsodmike committed May 29, 2022
1 parent fea9b68 commit 8e6a764
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "connect-1password"
version = "2.0.0"
version = "2.0.1"
description = "Rust SDK for 1Password Connect"
readme = "README.md"
homepage = "https://github.com/bsodmike/connect-sdk-rust"
Expand Down
20 changes: 10 additions & 10 deletions src/items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ mod login_item {

let item: FullItem = ItemBuilder::new(&test_vault_id, ItemCategory::Login)
.title("Test login item")
.username(&"Bob".to_string())
.password(&"".to_string())
.username("Bob")
.password("")
.build()
.unwrap();
let (new_item, _) = items::add(&client, item).await.unwrap();
Expand All @@ -252,8 +252,8 @@ mod login_item {

let item: FullItem = ItemBuilder::new(&test_vault_id, ItemCategory::Login)
.title("Test login item")
.username(&"Bob".to_string())
.password(&"".to_string())
.username("Bob")
.password("")
.add_otp("replaceme")
.build()
.unwrap();
Expand All @@ -277,8 +277,8 @@ mod login_item {
let client = get_test_client();

let item: FullItem = ItemBuilder::new(&test_vault_id, ItemCategory::Login)
.username(&"Bob".to_string())
.password(&"".to_string())
.username("Bob")
.password("")
.build()
.unwrap();
let (_new_item, _) = items::add(&client, item).await.unwrap();
Expand All @@ -292,8 +292,8 @@ mod login_item {

let item: FullItem = ItemBuilder::new(&test_vault_id, ItemCategory::Login)
.title("Test login item, will be removed")
.username(&"Bob".to_string())
.password(&"".to_string())
.username("Bob")
.password("")
.build()
.unwrap();
let (new_item, _) = items::add(&client, item).await.unwrap();
Expand Down Expand Up @@ -330,7 +330,7 @@ mod api_credential_item {
let client = get_test_client();

let item: FullItem = ItemBuilder::new(&test_vault_id, ItemCategory::ApiCredential)
.api_key(&"lawyer-rottenborn", "Dell XYZ")
.api_key("lawyer-rottenborn", "Dell XYZ")
.build()
.unwrap();
let (new_item, _) = items::add(&client, item).await.unwrap();
Expand Down Expand Up @@ -370,7 +370,7 @@ mod api_credential_item {
let client = get_test_client();

let item: FullItem = ItemBuilder::new(&test_vault_id, ItemCategory::ApiCredential)
.api_key(&"", "Dell XYZ")
.api_key("", "Dell XYZ")
.build()
.unwrap();
let (new_item, _) = items::add(&client, item).await.unwrap();
Expand Down
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
//!
//! let item: FullItem = ItemBuilder::new(&vaults[0].id, ItemCategory::Login)
//! .title("Secure server login")
//! .username(&"Bob".to_string())
//! .password(&"".to_string())
//! .username("Bob")
//! .password("")
//! .build()
//! .unwrap();
//!
Expand Down Expand Up @@ -87,7 +87,7 @@
//! assert!(!vaults.is_empty());
//!
//! let item: FullItem = ItemBuilder::new(&vaults[0].id, ItemCategory::ApiCredential)
//! .api_key(&"", "Dell XYZ")
//! .api_key("", "Dell XYZ")
//! .build()
//! .unwrap();
//!
Expand Down Expand Up @@ -141,7 +141,7 @@
//! assert!(!vaults.is_empty());
//!
//! let item: FullItem = ItemBuilder::new(&vaults[0].id, ItemCategory::ApiCredential)
//! .api_key(&"smelly-socks", "Dell XYZ")
//! .api_key("smelly-socks", "Dell XYZ")
//! .build()
//! .unwrap();
//!
Expand Down

0 comments on commit 8e6a764

Please sign in to comment.