diff options
| author | acdenisSK <[email protected]> | 2017-07-27 06:42:48 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-07-27 07:30:23 +0200 |
| commit | 550030264952f0e0043b63f4582bb817ef8bbf37 (patch) | |
| tree | b921e2f78fd603a5ca671623083a32806fd16090 /src/model/guild/integration.rs | |
| parent | Use a consistent indentation style (diff) | |
| download | serenity-550030264952f0e0043b63f4582bb817ef8bbf37.tar.xz serenity-550030264952f0e0043b63f4582bb817ef8bbf37.zip | |
rustfmt
Diffstat (limited to 'src/model/guild/integration.rs')
| -rw-r--r-- | src/model/guild/integration.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/model/guild/integration.rs b/src/model/guild/integration.rs index b276bc3..18da39d 100644 --- a/src/model/guild/integration.rs +++ b/src/model/guild/integration.rs @@ -6,7 +6,7 @@ pub struct Integration { pub id: IntegrationId, pub account: IntegrationAccount, pub enabled: bool, - #[serde(rename="expire_behaviour")] + #[serde(rename = "expire_behaviour")] pub expire_behaviour: u64, pub expire_grace_period: u64, pub kind: String, @@ -19,9 +19,7 @@ pub struct Integration { impl From<Integration> for IntegrationId { /// Gets the Id of integration. - fn from(integration: Integration) -> IntegrationId { - integration.id - } + fn from(integration: Integration) -> IntegrationId { integration.id } } /// Integration account object. |