mirror of
https://github.com/System-End/slack-morphism-rust.git
synced 2026-04-19 19:45:13 +00:00
fix: Compile error in an example (#336)
This commit is contained in:
parent
e4c2f98510
commit
447471f2d1
1 changed files with 3 additions and 1 deletions
|
|
@ -69,7 +69,9 @@ async fn test_push_events_sm_function(
|
|||
) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
println!("Push event: {:#?}", event);
|
||||
match event.event {
|
||||
SlackEventCallbackBody::AppHomeOpened(home_event) if home_event.tab == "home" => {
|
||||
SlackEventCallbackBody::AppHomeOpened(home_event)
|
||||
if home_event.tab == Some("home".to_string()) =>
|
||||
{
|
||||
let token_value: SlackApiTokenValue = config_env_var("SLACK_TEST_TOKEN")?.into();
|
||||
let token: SlackApiToken = SlackApiToken::new(token_value);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue