Skip to content

Commit

Permalink
remove option from pending response types
Browse files Browse the repository at this point in the history
Signed-off-by: Vivian Hellyer <vivian@hellyer.dev>
  • Loading branch information
zeylahellyer committed Jun 16, 2021
1 parent b5fa3e5 commit 7a3dceb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions http/src/request/guild/create_guild_prune.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct CreateGuildPruneFields {
pub struct CreateGuildPrune<'a> {
fields: CreateGuildPruneFields,
guild_id: GuildId,
fut: Option<PendingResponse<'a, Option<GuildPrune>>>,
fut: Option<PendingResponse<'a, GuildPrune>>,
http: &'a Client,
reason: Option<String>,
}
Expand Down Expand Up @@ -160,4 +160,4 @@ impl<'a> AuditLogReason for CreateGuildPrune<'a> {
}
}

poll_req!(CreateGuildPrune<'_>, Option<GuildPrune>);
poll_req!(CreateGuildPrune<'_>, GuildPrune);
4 changes: 2 additions & 2 deletions http/src/request/guild/get_audit_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ struct GetAuditLogFields {
/// ```
pub struct GetAuditLog<'a> {
fields: GetAuditLogFields,
fut: Option<PendingResponse<'a, Option<AuditLog>>>,
fut: Option<PendingResponse<'a, AuditLog>>,
guild_id: GuildId,
http: &'a Client,
}
Expand Down Expand Up @@ -163,4 +163,4 @@ impl<'a> GetAuditLog<'a> {
}
}

poll_req!(GetAuditLog<'_>, Option<AuditLog>);
poll_req!(GetAuditLog<'_>, AuditLog);
4 changes: 2 additions & 2 deletions http/src/request/guild/get_guild.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct GetGuildFields {
/// Get information about a guild.
pub struct GetGuild<'a> {
fields: GetGuildFields,
fut: Option<PendingResponse<'a, Option<Guild>>>,
fut: Option<PendingResponse<'a, Guild>>,
guild_id: GuildId,
http: &'a Client,
}
Expand Down Expand Up @@ -49,4 +49,4 @@ impl<'a> GetGuild<'a> {
}
}

poll_req!(GetGuild<'_>, Option<Guild>);
poll_req!(GetGuild<'_>, Guild);

0 comments on commit 7a3dceb

Please sign in to comment.