Plume-org / Plume

Federated blogging application, thanks to ActivityPub (now on https://git.joinplu.me/ — this is just a mirror)
https://joinplu.me
GNU Affero General Public License v3.0
2.09k stars 133 forks source link

Compile error because of activitystreams version #1032

Open OmmyZhang opened 1 year ago

OmmyZhang commented 1 year ago
error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied
   --> plume-common/src/activity_pub/mod.rs:412:6
    |
412 | impl Extends<HashtagType> for Hashtag {
    |      ^^^^^^^------------- help: remove these generics
    |      |
    |      expected 0 generic arguments
    |
note: trait defined here, with 0 generic parameters
   --> /home/plume/.cargo/registry/src/github.com-1ecc6299db9ec823/activitystreams-0.7.0-alpha.22/src/base.rs:41:11
    |
41  | pub trait Extends: Sized {
    |           ^^^^^^^

For more information about this error, try `rustc --explain E0107`.
error: could not compile `plume-common` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `plume-cli v0.7.2 (/home/plume/Plume/plume-cli)`, intermediate artifacts can be found at `/home/plume/Plume/target`

Locking activitystreams version can fix this, for example, activitystreams = "=0.7.0-alpha.20" (the version in Cargo.lock

KitaitiMakoto commented 1 year ago

Thanks for reporting!