I meant it to be that in the first place - that's why I entered
InfoStatus in the utilities enum. But then I forgot it was there and
made a separate entry for it.
When you're invoking status info from within a file, I think it makes
more sense as a utility, the way I first had it.
HomeTimelineFile,
PublicTimelineFile,
LocalTimelineFile,
- SinglePost(String),
HashtagTimeline(String),
ComposeToplevel,
PostComposeMenu,
} else {
match client.status_by_id(s) {
Ok(st) => LogicalAction::Goto(
- NonUtilityActivity::SinglePost(st.id).into()),
+ UtilityActivity::InfoStatus(st.id).into()),
// FIXME: it would be nice to discriminate errors
// better here, and maybe return anything worse
Ok(get_hashtag_to_read()),
Activity::Util(UtilityActivity::ExamineUser(ref name)) =>
examine_user(client, name),
- Activity::NonUtil(NonUtilityActivity::SinglePost(ref id)) =>
+ Activity::Util(UtilityActivity::InfoStatus(ref id)) =>
view_single_post(client, id),
Activity::NonUtil(NonUtilityActivity::ComposeToplevel) =>
compose_toplevel_post(client, post.unwrap_or_else(|| Post::new())),