Skip to content

Commit

Permalink
fix: examples (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
nanato12 authored Dec 3, 2023
1 parent f11c3ff commit 84b5a94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/actix_web_example/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ use std::env;
async fn callback(signature: Signature, bytes: web::Bytes) -> Result<HttpResponse, Error> {
// 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());

Expand Down
4 changes: 2 additions & 2 deletions examples/rocket_example/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 84b5a94

Please sign in to comment.