From 84b5a949c9e8421df2683dc98da09d09a1595cdf Mon Sep 17 00:00:00 2001 From: Haruto Date: Mon, 4 Dec 2023 00:16:34 +0900 Subject: [PATCH] fix: examples (#46) --- examples/actix_web_example/src/main.rs | 4 ++-- examples/rocket_example/src/main.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/actix_web_example/src/main.rs b/examples/actix_web_example/src/main.rs index 233f963..350bdef 100644 --- a/examples/actix_web_example/src/main.rs +++ b/examples/actix_web_example/src/main.rs @@ -18,9 +18,9 @@ use std::env; async fn callback(signature: Signature, bytes: web::Bytes) -> Result { // Get channel secret and access token by environment variable let channel_secret: &str = - &env::var("LINE_CHANNEL_SECRET").expect("Failed getting LINE_CHANNEL_SECRET"); + &env::var("LINE_CHANNEL_SECRET").expect("Failed to get LINE_CHANNEL_SECRET"); let access_token: &str = - &env::var("LINE_CHANNEL_ACCESS_TOKEN").expect("Failed getting LINE_CHANNEL_ACCESS_TOKEN"); + &env::var("LINE_CHANNEL_ACCESS_TOKEN").expect("Failed to get LINE_CHANNEL_ACCESS_TOKEN"); let line = LINE::new(access_token.to_string()); diff --git a/examples/rocket_example/src/main.rs b/examples/rocket_example/src/main.rs index 6ed98bc..e782829 100644 --- a/examples/rocket_example/src/main.rs +++ b/examples/rocket_example/src/main.rs @@ -17,9 +17,9 @@ use std::env; async fn world(signature: Signature, body: String) -> (Status, &'static str) { // Get channel secret and access token by environment variable let channel_secret: &str = - &env::var("LINE_CHANNEL_SECRET").expect("Failed getting LINE_CHANNEL_SECRET"); + &env::var("LINE_CHANNEL_SECRET").expect("Failed to get LINE_CHANNEL_SECRET"); let access_token: &str = - &env::var("LINE_CHANNEL_ACCESS_TOKEN").expect("Failed getting LINE_CHANNEL_ACCESS_TOKEN"); + &env::var("LINE_CHANNEL_ACCESS_TOKEN").expect("Failed to get LINE_CHANNEL_ACCESS_TOKEN"); let _line = LINE::new(access_token.to_string());