File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ use std::env;
18
18
async fn callback ( signature : Signature , bytes : web:: Bytes ) -> Result < HttpResponse , Error > {
19
19
// Get channel secret and access token by environment variable
20
20
let channel_secret: & str =
21
- & env:: var ( "LINE_CHANNEL_SECRET" ) . expect ( "Failed getting LINE_CHANNEL_SECRET" ) ;
21
+ & env:: var ( "LINE_CHANNEL_SECRET" ) . expect ( "Failed to get LINE_CHANNEL_SECRET" ) ;
22
22
let access_token: & str =
23
- & env:: var ( "LINE_CHANNEL_ACCESS_TOKEN" ) . expect ( "Failed getting LINE_CHANNEL_ACCESS_TOKEN" ) ;
23
+ & env:: var ( "LINE_CHANNEL_ACCESS_TOKEN" ) . expect ( "Failed to get LINE_CHANNEL_ACCESS_TOKEN" ) ;
24
24
25
25
let line = LINE :: new ( access_token. to_string ( ) ) ;
26
26
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ use std::env;
17
17
async fn world ( signature : Signature , body : String ) -> ( Status , & ' static str ) {
18
18
// Get channel secret and access token by environment variable
19
19
let channel_secret: & str =
20
- & env:: var ( "LINE_CHANNEL_SECRET" ) . expect ( "Failed getting LINE_CHANNEL_SECRET" ) ;
20
+ & env:: var ( "LINE_CHANNEL_SECRET" ) . expect ( "Failed to get LINE_CHANNEL_SECRET" ) ;
21
21
let access_token: & str =
22
- & env:: var ( "LINE_CHANNEL_ACCESS_TOKEN" ) . expect ( "Failed getting LINE_CHANNEL_ACCESS_TOKEN" ) ;
22
+ & env:: var ( "LINE_CHANNEL_ACCESS_TOKEN" ) . expect ( "Failed to get LINE_CHANNEL_ACCESS_TOKEN" ) ;
23
23
24
24
let _line = LINE :: new ( access_token. to_string ( ) ) ;
25
25
You can’t perform that action at this time.
0 commit comments