aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-06-01 22:30:20 -0700
committerZeyla Hellyer <[email protected]>2017-06-01 22:30:20 -0700
commit81f8c9e4858587c228504b551144417c74a7cf94 (patch)
treed6aec6e1928a53b40b97b4b5f27510af29a94335 /src/model
parentCheck last heartbeat acknowledged in heartbeater (diff)
downloadserenity-81f8c9e4858587c228504b551144417c74a7cf94.tar.xz
serenity-81f8c9e4858587c228504b551144417c74a7cf94.zip
Fix no-feature compilations
An internal `tag` function created in a previous commit is only required for use when the `"model"` feature is enabled, but the function itself was not gated behind the feature.
Diffstat (limited to 'src/model')
-rw-r--r--src/model/user.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/model/user.rs b/src/model/user.rs
index 4bbe1ec..5b08579 100644
--- a/src/model/user.rs
+++ b/src/model/user.rs
@@ -665,6 +665,7 @@ impl fmt::Display for UserId {
}
}
+#[cfg(feature="model")]
fn tag(name: &str, discriminator: u16) -> String {
// 32: max length of username
// 1: `#`