rucene icon indicating copy to clipboard operation
rucene copied to clipboard

build error

Open ozkanpakdil opened this issue 1 year ago • 2 comments

just building example code and getting error below,

error[E0599]: no method named `get_ref` found for union `MaybeUninit` in the current scope
   --> /home/oz-mint/.cargo/registry/src/github.com-1ecc6299db9ec823/rucene-0.1.1/src/core/search/query/spans/span_near.rs:509:45
    |
509 |             } else if self.conjunction_span.get_ref().one_exhausted_in_current_doc {
    |                                             ^^^^^^^ method not found in `MaybeUninit<ConjunctionSpanBase<P>>`
    |
   ::: /home/oz-mint/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/pin.rs:804:18
    |
804 |     pub const fn get_ref(self) -> &'a T {
    |                  ------- the method is available for `Pin<&MaybeUninit<span::ConjunctionSpanBase<P>>>` here
    |
help: consider wrapping the receiver expression with the appropriate type
    |
509 |             } else if Pin::new(&self.conjunction_span).get_ref().one_exhausted_in_current_doc {
    |                       ++++++++++                     +

Some errors have detailed explanations: E0308, E0554, E0599, E0635.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `rucene` due to 67 previous errors

any suggestions ? here https://github.com/ozkanpakdil/rust-examples/tree/main/rucene_test

ozkanpakdil avatar Apr 17 '23 17:04 ozkanpakdil