diff options
| author | Zeyla Hellyer <[email protected]> | 2017-06-01 22:30:20 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-06-01 22:30:20 -0700 |
| commit | 81f8c9e4858587c228504b551144417c74a7cf94 (patch) | |
| tree | d6aec6e1928a53b40b97b4b5f27510af29a94335 /src/model | |
| parent | Check last heartbeat acknowledged in heartbeater (diff) | |
| download | serenity-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.rs | 1 |
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: `#` |