Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Minor syntax changes to pass tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeCamel committed Sep 7, 2020
1 parent f81994a commit 861cb07
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async fn main() {
}

fn create_new_runtime(recvd_data: &[u8]) {
format!("About to attempt new runtime creation");
println!("About to attempt new runtime creation");
let _ = env_logger::try_init_from_env(env_logger::Env::default());
//TODO - get args these from main() if required
// let args = std::env::args().skip(1);
Expand Down Expand Up @@ -104,8 +104,8 @@ fn get_credentials_bytes() -> (Vec<u8>, Vec<u8>) {
//implementation for file system
fn get_cert_bytes_fs() -> Vec<u8> {
let in_path = Path::new("key-material/server.crt");

let in_contents = match std::fs::read(in_path) {
let in_contents: Vec<u8>;
in_contents = match std::fs::read(in_path) {
Ok(in_contents) => {
println!("Contents = of {} bytes", &in_contents.len());
in_contents
Expand All @@ -122,8 +122,8 @@ fn get_cert_bytes_fs() -> Vec<u8> {
fn get_key_bytes_fs() -> Vec<u8> {
println!("Generating server key (PEM)");
let in_path = Path::new("key-material/server.key");

let in_contents = match std::fs::read(in_path) {
let in_contents: Vec<u8>;
in_contents = match std::fs::read(in_path) {
Ok(in_contents) => {
println!("Contents = of {} bytes", &in_contents.len());
in_contents
Expand Down

0 comments on commit 861cb07

Please sign in to comment.