Git Product home page Git Product logo

Comments (6)

GnomedDev avatar GnomedDev commented on August 17, 2024

What version of Rust are you getting the error on? You can fetch this with rustc --version.

from serenity.

AirborneDetergent avatar AirborneDetergent commented on August 17, 2024

@GnomedDev I get rustc 1.75.0 (82e1608df 2023-12-21) when I run that command. There don't appear to be any updates available when running rustup check.

from serenity.

mkrasnitski avatar mkrasnitski commented on August 17, 2024

I would recommend running cargo clean and also cargo update. Your Cargo.lock may need to get refreshed.

from serenity.

AirborneDetergent avatar AirborneDetergent commented on August 17, 2024

That didn't seem to do anything.

from serenity.

mkrasnitski avatar mkrasnitski commented on August 17, 2024

That error message also seems a bit malformed. This isn't a valid function signature:

pub async fn dispatch(self, ctx: Context, handler: &mut dyn event_handler::EventHandler: &dyn EventHandler)

Also, the signature of FullEvent::dispatch in serenity v0.12.0 is this:

pub async fn dispatch(self, ctx: Context, handler: &dyn EventHandler)

from serenity.

AirborneDetergent avatar AirborneDetergent commented on August 17, 2024

@mkrasnitski I have no idea what's causing the malformed error message, but I reinstalled my toolchain as well as rust itself, tried switching from GNU to MSVC, and tested out the nightly toolchain with no result. What finally ended up working was just changing Serenity's version to v0.11.7. It doesn't really make any sense because I've been using v0.12.0 the whole time and the problem started spontaneously. I'll leave the issue open since my fix was to downgrade, so there must be something up with the current version of Serenity.

from serenity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.