Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
LJ authored and LJ committed Sep 10, 2024
1 parent 64ec4ad commit 4c1b9cc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ maintenance = { status = "experimental" }
[lib]
name = "chilloutvr"
path = "src/lib.rs"
crate_type = ["lib", "dylib"]
crate-type = ["lib", "dylib"]

[features]

Expand Down
5 changes: 1 addition & 4 deletions tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,5 @@ pub fn api_client() -> AuthenticatedCVR {
}

pub fn unauthenticated_api_client() -> UnauthenticatedCVR {
UnauthenticatedCVR::new(
ApiConfiguration::new(USER_AGENT.to_owned())
)
.unwrap()
UnauthenticatedCVR::new(ApiConfiguration::new(USER_AGENT.to_owned())).unwrap()
}
18 changes: 9 additions & 9 deletions tests/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ mod common;
async fn login() -> Result<(), ApiError> {
let client = common::unauthenticated_api_client();

/*
example credentials file:
/*
example credentials file:
{
"auth_type": "loginProfile",
"username": "[email protected]",
"password": "hunter2"
}
{
"auth_type": "loginProfile",
"username": "[email protected]",
"password": "hunter2"
}
*/
*/

let credentials = serde_json::from_slice::<AuthType>(
&std::fs::read("user-credentials.json").expect(
Expand All @@ -37,4 +37,4 @@ example credentials file:
assert!(!results.access_key.is_empty());

Ok(())
}
}

0 comments on commit 4c1b9cc

Please sign in to comment.