Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
Before this commit, Poise compilation would fail with this error:

```
error[E0432]: unresolved import `crate::serenity`
  --> src/builtins/mod.rs:20:13
   |
20 | use crate::{serenity::CreateAllowedMentions, serenity_prelude as serenity, CreateReply};
   |             ^^^^^^^^
   |             |
   |             unresolved import
   |             help: a similar path exists: `crate::prefix_argument::key_value_args::serenity`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `poise` (lib) due to 1 previous error
```
  • Loading branch information
SkyfallWasTaken committed Jun 8, 2024
1 parent 01c6ead commit 7d21533
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/builtins/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ mod paginate;
#[cfg(any(feature = "chrono", feature = "time"))]
pub use paginate::*;

use crate::{serenity::CreateAllowedMentions, serenity_prelude as serenity, CreateReply};
use crate::{serenity_prelude as serenity, CreateReply};
use serenity::CreateAllowedMentions;

/// An error handler that logs errors either via the [`tracing`] crate or via a Discord message. Set
/// up a logger (e.g. `env_logger::init()`) or a tracing subscriber
Expand Down

0 comments on commit 7d21533

Please sign in to comment.