fmt: I ran cargo fmt
This commit is contained in:
12
src/main.rs
12
src/main.rs
@@ -30,10 +30,12 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
}
|
||||
|
||||
fn auth_header(mut req: Request<()>) -> Result<Request<()>, Status> {
|
||||
let token: MetadataValue<_> = "Bearer my-secret-token"
|
||||
.parse()
|
||||
.expect("failed to parse token");
|
||||
|
||||
let token: MetadataValue<_> = "Bearer my-secret-token".parse().expect("failed to parse token");
|
||||
|
||||
|
||||
req.metadata_mut().insert("x-goog-api-key", token).expect("WHAT");
|
||||
Ok(req)
|
||||
req.metadata_mut()
|
||||
.insert("x-goog-api-key", token)
|
||||
.expect("WHAT");
|
||||
Ok(req)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user