diff --git a/build.rs b/build.rs index f1daee7..d42a615 100644 --- a/build.rs +++ b/build.rs @@ -24,13 +24,7 @@ fn main() -> std::io::Result<()> { "invoicesrpc/invoices.proto", ]; - let proto_paths: Vec<_> = protos - .iter() - .map(|proto| { - let proto_path = dir.join(proto); - proto_path - }) - .collect(); + let proto_paths: Vec<_> = protos.iter().map(|proto| dir.join(proto)).collect(); tonic_build::configure() .build_client(true) diff --git a/src/lib.rs b/src/lib.rs index 092bfc0..50c8a31 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -327,7 +327,7 @@ mod tls { for (c, p) in self.certs.iter().zip(certs.iter()) { if *p.0 != **c { return Err(TLSError::General( - "Server certificates do not match ours".to_string() + "Server certificates do not match ours".to_string(), )); } }