kardeiz / pallet

81 stars 2 forks source link

Crate is unable to build due to upstream changes in tantivy 0.12 #5

Closed lberezy closed 3 years ago

lberezy commented 3 years ago

The dependency tantivy 0.12 is unable to build, resulting in a failed build for this crate.

To resolve this, I've upgraded this crate's dependencies (and some) in #4.

error[E0603]: module `export` is private
   --> /home/lucas/.cargo/registry/src/github.com-1ecc6299db9ec823/tantivy-0.12.0/src/collector/top_collector.rs:5:12
    |
5   | use serde::export::PhantomData;
    |            ^^^^^^ private module
    |
note: the module `export` is defined here
   --> /home/lucas/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.123/src/lib.rs:275:5
    |
275 | use self::__private as export;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0392]: parameter `TScore` is never used
 --> /home/lucas/.cargo/registry/src/github.com-1ecc6299db9ec823/tantivy-0.12.0/src/collector/custom_score_top_collector.rs:5:58
  |
5 | pub(crate) struct CustomScoreTopCollector<TCustomScorer, TScore = Score> {
  |                                                          ^^^^^^ unused parameter
  |
  = help: consider removing `TScore`, referring to it in a field, or using a marker such as `PhantomData`

error[E0392]: parameter `TScore` is never used
 --> /home/lucas/.cargo/registry/src/github.com-1ecc6299db9ec823/tantivy-0.12.0/src/collector/tweak_score_top_collector.rs:6:59
  |
6 | pub(crate) struct TweakedScoreTopCollector<TScoreTweaker, TScore = Score> {
  |                                                           ^^^^^^ unused parameter
  |
  = help: consider removing `TScore`, referring to it in a field, or using a marker such as `PhantomData`

error: aborting due to 3 previous errors
lberezy commented 3 years ago

Closed by #4