Skip to content

Commit d71d83f

Browse files
committed
Fix clippy lints
1 parent f05095d commit d71d83f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/graphql.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -836,8 +836,7 @@ mod tests {
836836
async fn denied_scan_request(#[future(awt)] auth_env: TestAuthEnv) {
837837
let query = r#"mutation{ scan(beamline: "i22", visit: "cm12345-3") { scanNumber }}"#;
838838
let token = Some(Authorization(
839-
Bearer::decode(&HeaderValue::from_str(&format!("Bearer token_value")).unwrap())
840-
.unwrap(),
839+
Bearer::decode(&HeaderValue::from_str("Bearer token_value").unwrap()).unwrap(),
841840
));
842841
let auth = auth_env
843842
.server
@@ -873,8 +872,7 @@ mod tests {
873872
async fn authorized_scan_request(#[future(awt)] auth_env: TestAuthEnv) {
874873
let query = r#"mutation{ scan(beamline: "i22", visit: "cm12345-3") { scanNumber }}"#;
875874
let token = Some(Authorization(
876-
Bearer::decode(&HeaderValue::from_str(&format!("Bearer token_value")).unwrap())
877-
.unwrap(),
875+
Bearer::decode(&HeaderValue::from_str("Bearer token_value").unwrap()).unwrap(),
878876
));
879877
let auth = auth_env
880878
.server

src/numtracker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ mod tests {
189189
F: for<'f> FnOnce(&'f Path) -> io::Result<()>,
190190
{
191191
let root = tempdir().unwrap();
192-
init(&root.as_ref()).unwrap();
192+
init(root.as_ref()).unwrap();
193193
Self(NumTracker::for_root_directory(Some(&root)).unwrap(), root)
194194
}
195195
}

0 commit comments

Comments
 (0)