fix: Compile error in an example (#336)

This commit is contained in:
Abdulla Abdurakhmanov 2025-10-17 13:59:47 +02:00 committed by GitHub
parent e4c2f98510
commit 447471f2d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);