Skip to content

Build fails with glifparser.rlib in development mode #243

@eliheuer

Description

@eliheuer

I'm trying to work on this issue, but in order to do that, I think I need to make changes to glifparser.lib and test them in glyph.

So I edited the Cargo.Toml to do the above task like so:

## Our crates
# parses .glif files and gives us a place to put arbitrary data
#glifparser = { git = "https://github.com/MFEK/glifparser.rlib", branch = "master", features=["skia", "mfek"] }
glifparser = { path = "../glifparser.rlib", features=["skia", "mfek"] } # for development

However, after doing that I can't build glif and get these errors:

PC 福 ~/MFEK/glif ➤ 72e118d|master⚡
3606 ± : cargo run --release ~/Type/repos/print-shoppe/sources/PrintShoppe.ufo/glyphs/G_.glif          
   Compiling MFEKglif v1.1.0-beta2 (/home/eli/MFEK/glif)
error[E0308]: mismatched types
  --> src/contour_operations/dashalongpath.rs:10:53
   |
10 |         let dash_output = MFEKmath::dash_along_glif(&glif, self);
   |                                                     ^^^^^ expected struct `glifparser::glif::Glif`, found struct `Glif`
   |
   = note: expected reference `&glifparser::glif::Glif<_>`
              found reference `&Glif<util::MFEKGlifPointData>`
   = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
  --> src/contour_operations/dashalongpath.rs:10:60
   |
10 |         let dash_output = MFEKmath::dash_along_glif(&glif, self);
   |                                                            ^^^^ expected struct `glifparser::glif::mfek::DashContour`, found struct `DashContour`
   |
   = note: expected reference `&glifparser::glif::mfek::DashContour`
              found reference `&DashContour`
   = note: perhaps two different versions of crate `glifparser` are being used?

error[E0277]: the trait bound `MFEKContour<util::MFEKGlifPointData>: From<Vec<glifparser::point::Point<_>>>` is not satisfied
  --> src/contour_operations/dashalongpath.rs:15:37
   |
15 |                 output.push(contour.into());
   |                                     ^^^^ the trait `From<Vec<glifparser::point::Point<_>>>` is not implemented for `MFEKContour<util::MFEKGlifPointData>`
   |
   = help: the following implementations were found:
             <MFEKContour<PD> as From<&Vec<glifparser::Point<PD>>>>
             <MFEKContour<PD> as From<Vec<glifparser::Point<PD>>>>
   = note: required because of the requirements on the impl of `Into<MFEKContour<util::MFEKGlifPointData>>` for `Vec<glifparser::point::Point<_>>`

error[E0277]: the trait bound `Piecewise<_>: From<&Vec<glifparser::Point<util::MFEKGlifPointData>>>` is not satisfied
   --> src/contour_operations/patternalongpath.rs:9:26
    |
9   |         let contour_pw = Piecewise::from(&contour.inner);
    |                          ^^^^^^^^^^^^^^^ the trait `From<&Vec<glifparser::Point<util::MFEKGlifPointData>>>` is not implemented for `Piecewise<_>`
    |
    = help: the following implementations were found:
              <Piecewise<Bezier> as From<&Vec<glifparser::point::Point<T>>>>
              <Piecewise<Bezier> as From<&glifparser::glif::mfek::MFEKContour<T>>>
              <Piecewise<Bezier> as From<glifparser::glif::mfek::MFEKContour<T>>>
              <Piecewise<Piecewise<Bezier>> as From<&Vec<Vec<glifparser::point::Point<T>>>>>
            and 3 others
note: required by `std::convert::From::from`

error[E0308]: mismatched types
  --> src/contour_operations/patternalongpath.rs:11:63
   |
11 |         let pap_output = pattern_along_path_mfek(&contour_pw, self);
   |                                                               ^^^^ expected struct `glifparser::glif::mfek::PAPContour`, found struct `PAPContour`
   |
   = note: expected reference `&glifparser::glif::mfek::PAPContour<_>`
              found reference `&PAPContour<util::MFEKGlifPointData>`
   = note: perhaps two different versions of crate `glifparser` are being used?

error[E0277]: the trait bound `MFEKContour<util::MFEKGlifPointData>: From<Vec<glifparser::point::Point<_>>>` is not satisfied
  --> src/contour_operations/patternalongpath.rs:15:46
   |
15 |             output.push(contour.to_contour().into());
   |                                              ^^^^ the trait `From<Vec<glifparser::point::Point<_>>>` is not implemented for `MFEKContour<util::MFEKGlifPointData>`
   |
   = help: the following implementations were found:
             <MFEKContour<PD> as From<&Vec<glifparser::Point<PD>>>>
             <MFEKContour<PD> as From<Vec<glifparser::Point<PD>>>>
   = note: required because of the requirements on the impl of `Into<MFEKContour<util::MFEKGlifPointData>>` for `Vec<glifparser::point::Point<_>>`

error[E0277]: the trait bound `Piecewise<_>: From<&Vec<glifparser::Point<util::MFEKGlifPointData>>>` is not satisfied
   --> src/contour_operations/variablewidthstroke.rs:12:26
    |
12  |         let contour_pw = Piecewise::from(&contour.inner);
    |                          ^^^^^^^^^^^^^^^ the trait `From<&Vec<glifparser::Point<util::MFEKGlifPointData>>>` is not implemented for `Piecewise<_>`
    |
    = help: the following implementations were found:
              <Piecewise<Bezier> as From<&Vec<glifparser::point::Point<T>>>>
              <Piecewise<Bezier> as From<&glifparser::glif::mfek::MFEKContour<T>>>
              <Piecewise<Bezier> as From<glifparser::glif::mfek::MFEKContour<T>>>
              <Piecewise<Piecewise<Bezier>> as From<&Vec<Vec<glifparser::point::Point<T>>>>>
            and 3 others
note: required by `std::convert::From::from`

error[E0277]: the trait bound `util::MFEKGlifPointData: glifparser::point::PointData` is not satisfied
  --> src/contour_operations/variablewidthstroke.rs:14:24
   |
14 |         let settings = VWSSettings::<MFEKGlifPointData> {
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `glifparser::point::PointData` is not implemented for `util::MFEKGlifPointData`
   |
note: required by `VWSSettings`
  --> /home/eli/.cargo/git/checkouts/math.rlib-d2c76c88b18fa5ee/a575e35/src/variable_width_stroking/mod.rs:8:1
   |
8  | pub struct VWSSettings<PD: PointData> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0277]: the trait bound `util::MFEKGlifPointData: glifparser::point::PointData` is not satisfied
  --> src/contour_operations/variablewidthstroke.rs:15:31
   |
15 |             cap_custom_start: None,
   |                               ^^^^ the trait `glifparser::point::PointData` is not implemented for `util::MFEKGlifPointData`
   |
note: required by a bound in `glifparser::glif::Glif`
  --> /home/eli/.cargo/git/checkouts/glifparser.rlib-8a794fa86f0b184f/7c5fe52/src/glif.rs:36:21
   |
36 | pub struct Glif<PD: PointData> {
   |                     ^^^^^^^^^ required by this bound in `glifparser::glif::Glif`

error[E0277]: the trait bound `util::MFEKGlifPointData: glifparser::point::PointData` is not satisfied
  --> src/contour_operations/variablewidthstroke.rs:16:29
   |
16 |             cap_custom_end: None,
   |                             ^^^^ the trait `glifparser::point::PointData` is not implemented for `util::MFEKGlifPointData`
   |
note: required by a bound in `glifparser::glif::Glif`
  --> /home/eli/.cargo/git/checkouts/glifparser.rlib-8a794fa86f0b184f/7c5fe52/src/glif.rs:36:21
   |
36 | pub struct Glif<PD: PointData> {
   |                     ^^^^^^^^^ required by this bound in `glifparser::glif::Glif`

error[E0308]: mismatched types
  --> src/contour_operations/variablewidthstroke.rs:19:61
   |
19 |         let vws_output = variable_width_stroke(&contour_pw, self, &settings);
   |                                                             ^^^^ expected struct `glifparser::glif::mfek::VWSContour`, found struct `VWSContour`
   |
   = note: expected reference `&glifparser::glif::mfek::VWSContour`
              found reference `&VWSContour`
   = note: perhaps two different versions of crate `glifparser` are being used?

error[E0277]: the trait bound `util::MFEKGlifPointData: glifparser::point::PointData` is not satisfied
   --> src/contour_operations/variablewidthstroke.rs:19:67
    |
19  |         let vws_output = variable_width_stroke(&contour_pw, self, &settings);
    |                          ---------------------                    ^^^^^^^^^ the trait `glifparser::point::PointData` is not implemented for `util::MFEKGlifPointData`
    |                          |
    |                          required by a bound introduced by this call
    |
note: required by a bound in `variable_width_stroke`
   --> /home/eli/.cargo/git/checkouts/math.rlib-d2c76c88b18fa5ee/a575e35/src/variable_width_stroking/mod.rs:127:34
    |
127 | pub fn variable_width_stroke<PD: PointData>(in_pw: &Piecewise<Bezier>, vws_contour: &VWSContour, settings: &VWSSettings<PD>) -> Piecewise...
    |                                  ^^^^^^^^^ required by this bound in `variable_width_stroke`

error[E0277]: the trait bound `MFEKContour<util::MFEKGlifPointData>: From<Vec<glifparser::point::Point<_>>>` is not satisfied
  --> src/contour_operations/variablewidthstroke.rs:23:46
   |
23 |             output.push(contour.to_contour().into());
   |                                              ^^^^ the trait `From<Vec<glifparser::point::Point<_>>>` is not implemented for `MFEKContour<util::MFEKGlifPointData>`
   |
   = help: the following implementations were found:
             <MFEKContour<PD> as From<&Vec<glifparser::Point<PD>>>>
             <MFEKContour<PD> as From<Vec<glifparser::Point<PD>>>>
   = note: required because of the requirements on the impl of `Into<MFEKContour<util::MFEKGlifPointData>>` for `Vec<glifparser::point::Point<_>>`

error[E0599]: no method named `assert_colocated_within` found for struct `Vec<Vec<glifparser::Point<_>>>` in the current scope
  --> src/editor/io.rs:91:26
   |
91 |                     colo.assert_colocated_within(0.01);
   |                          ^^^^^^^^^^^^^^^^^^^^^^^ method not found in `Vec<Vec<glifparser::Point<_>>>`

error[E0277]: the trait bound `Piecewise<Piecewise<Bezier>>: From<&Vec<MFEKContour<util::MFEKGlifPointData>>>` is not satisfied
   --> src/editor/util.rs:148:65
    |
148 |         let pw: Piecewise<Piecewise<Bezier>> = (&layer.outline).into();
    |                                                                 ^^^^ the trait `From<&Vec<MFEKContour<util::MFEKGlifPointData>>>` is not implemented for `Piecewise<Piecewise<Bezier>>`
    |
    = help: the following implementations were found:
              <Piecewise<Bezier> as From<&Vec<glifparser::point::Point<T>>>>
              <Piecewise<Bezier> as From<&glifparser::glif::mfek::MFEKContour<T>>>
              <Piecewise<Bezier> as From<glifparser::glif::mfek::MFEKContour<T>>>
              <Piecewise<Piecewise<Bezier>> as From<&Vec<Vec<glifparser::point::Point<T>>>>>
            and 3 others
    = note: required because of the requirements on the impl of `Into<Piecewise<Piecewise<Bezier>>>` for `&Vec<MFEKContour<util::MFEKGlifPointData>>`

error[E0271]: type mismatch resolving `<Vec<glifparser::guideline::Guideline<_>> as IntoIterator>::Item == Guideline<util::MFEKGlifPointData>`
   --> src/ipc.rs:144:22
    |
144 |         v.guidelines.extend(guidelines);
    |                      ^^^^^^ expected struct `glifparser::guideline::Guideline`, found struct `Guideline`
    |
    = note: expected struct `glifparser::guideline::Guideline<_>`
               found struct `Guideline<util::MFEKGlifPointData>`
    = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
  --> src/render/mod.rs:76:17
   |
76 |                 &guideline,
   |                 ^^^^^^^^^^ expected struct `glifparser::guideline::Guideline`, found reference
   |
   = note: expected reference `&glifparser::guideline::Guideline<_>`
              found reference `&&Guideline<util::MFEKGlifPointData>`

error[E0308]: mismatched types
  --> src/render/mod.rs:91:39
   |
91 |     glifrenderer::glyph::draw(canvas, v.preview.as_ref().unwrap(), &i.viewport);
   |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `glifparser::glif::mfek::MFEKGlif`, found struct `glifparser::MFEKGlif`
   |
   = note: expected reference `&glifparser::glif::mfek::MFEKGlif<_>`
              found reference `&glifparser::MFEKGlif<util::MFEKGlifPointData>`
   = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
  --> src/render/mod.rs:95:25
   |
95 |         draw_components(glyph, &i.viewport, canvas);
   |                         ^^^^^ expected struct `glifparser::glif::mfek::MFEKGlif`, found struct `glifparser::MFEKGlif`
   |
   = note: expected reference `&glifparser::glif::mfek::MFEKGlif<_>`
              found reference `&glifparser::MFEKGlif<util::MFEKGlifPointData>`
   = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
   --> src/render/mod.rs:109:21
    |
109 |                     glif,
    |                     ^^^^ expected struct `glifparser::glif::mfek::MFEKGlif`, found struct `glifparser::MFEKGlif`
    |
    = note: expected reference `&glifparser::glif::mfek::MFEKGlif<_>`
               found reference `&glifparser::MFEKGlif<util::MFEKGlifPointData>`
    = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
   --> src/render/mod.rs:117:30
    |
117 |                 draw_anchors(glif, &i.viewport, canvas);
    |                              ^^^^ expected struct `glifparser::glif::mfek::MFEKGlif`, found struct `glifparser::MFEKGlif`
    |
    = note: expected reference `&glifparser::glif::mfek::MFEKGlif<_>`
               found reference `&glifparser::MFEKGlif<util::MFEKGlifPointData>`
    = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
   --> src/render/mod.rs:121:54
    |
121 |                 points::draw_directions(&i.viewport, active_layer, canvas);
    |                                                      ^^^^^^^^^^^^ expected struct `glifparser::glif::mfek::layer::Layer`, found struct `Layer`
    |
    = note: expected reference `&glifparser::glif::mfek::layer::Layer<_>`
               found reference `&Layer<util::MFEKGlifPointData>`
    = note: perhaps two different versions of crate `glifparser` are being used?

error[E0599]: no method named `polar` found for mutable reference `&mut glifparser::Point<PD>` in the current scope
  --> src/user_interface/util.rs:58:37
   |
58 |     let (radius, mut theta) = point.polar(wh);
   |                                     ^^^^^ method not found in `&mut glifparser::Point<PD>`

error[E0599]: no method named `set_polar` found for mutable reference `&mut glifparser::Point<PD>` in the current scope
   --> src/user_interface/util.rs:100:19
    |
100 |             point.set_polar(wh, (new_r, new_theta));
    |                   ^^^^^^^^^ method not found in `&mut glifparser::Point<PD>`

error[E0308]: mismatched types
  --> src/tool_behaviors/selection_box.rs:86:41
   |
86 |                     UIPointType::Point((point.a, point.b)),
   |                                         ^^^^^^^ expected enum `glifparser::point::Handle`, found enum `glifparser::Handle`
   |
   = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
  --> src/tool_behaviors/selection_box.rs:86:50
   |
86 |                     UIPointType::Point((point.a, point.b)),
   |                                                  ^^^^^^^ expected enum `glifparser::point::Handle`, found enum `glifparser::Handle`
   |
   = note: perhaps two different versions of crate `glifparser` are being used?

error[E0599]: no method named `polar` found for mutable reference `&mut glifparser::Point<util::MFEKGlifPointData>` in the current scope
   --> src/tool_behaviors/move_handle.rs:108:28
    |
108 |         let (r, _) = point.polar(self.wh.opposite());
    |                            ^^^^^ method not found in `&mut glifparser::Point<util::MFEKGlifPointData>`

error[E0599]: no method named `polar` found for mutable reference `&mut glifparser::Point<util::MFEKGlifPointData>` in the current scope
   --> src/tool_behaviors/move_handle.rs:109:32
    |
109 |         let (_, theta) = point.polar(self.wh);
    |                                ^^^^^ method not found in `&mut glifparser::Point<util::MFEKGlifPointData>`

error[E0599]: no method named `set_polar` found for mutable reference `&mut glifparser::Point<util::MFEKGlifPointData>` in the current scope
   --> src/tool_behaviors/move_handle.rs:111:37
    |
111 |             Handle::At(..) => point.set_polar(self.wh.opposite(), (r, theta.to_degrees())),
    |                                     ^^^^^^^^^ method not found in `&mut glifparser::Point<util::MFEKGlifPointData>`

error[E0308]: mismatched types
   --> src/tool_behaviors/move_point.rs:141:49
    |
141 | ...                   UIPointType::Point((merge.a, merge.b)),
    |                                           ^^^^^^^ expected enum `glifparser::point::Handle`, found enum `glifparser::Handle`
    |
    = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
   --> src/tool_behaviors/move_point.rs:141:58
    |
141 | ...                   UIPointType::Point((merge.a, merge.b)),
    |                                                    ^^^^^^^ expected enum `glifparser::point::Handle`, found enum `glifparser::Handle`
    |
    = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
  --> src/tool_behaviors/add_guideline.rs:85:45
   |
85 |         draw_guideline(&i.viewport, canvas, &prev_guide, None)
   |                                             ^^^^^^^^^^^ expected struct `glifparser::guideline::Guideline`, found struct `Guideline`
   |
   = note: expected reference `&glifparser::guideline::Guideline<_>`
              found reference `&Guideline<()>`
   = note: perhaps two different versions of crate `glifparser` are being used?

error[E0277]: the trait bound `Piecewise<_>: From<&Vec<glifparser::Point<util::MFEKGlifPointData>>>` is not satisfied
   --> src/tools/vws/util.rs:78:26
    |
78  |         let contour_pw = Piecewise::from(&get_contour!(layer, contour_idx));
    |                          ^^^^^^^^^^^^^^^ the trait `From<&Vec<glifparser::Point<util::MFEKGlifPointData>>>` is not implemented for `Piecewise<_>`
    |
    = help: the following implementations were found:
              <Piecewise<Bezier> as From<&Vec<glifparser::point::Point<T>>>>
              <Piecewise<Bezier> as From<&glifparser::glif::mfek::MFEKContour<T>>>
              <Piecewise<Bezier> as From<glifparser::glif::mfek::MFEKContour<T>>>
              <Piecewise<Piecewise<Bezier>> as From<&Vec<Vec<glifparser::point::Point<T>>>>>
            and 3 others
note: required by `std::convert::From::from`

error[E0277]: the trait bound `Piecewise<_>: From<&Vec<glifparser::Point<util::MFEKGlifPointData>>>` is not satisfied
   --> src/tools/vws/util.rs:161:26
    |
161 |         let contour_pw = Piecewise::from(&get_contour!(layer, contour_idx));
    |                          ^^^^^^^^^^^^^^^ the trait `From<&Vec<glifparser::Point<util::MFEKGlifPointData>>>` is not implemented for `Piecewise<_>`
    |
    = help: the following implementations were found:
              <Piecewise<Bezier> as From<&Vec<glifparser::point::Point<T>>>>
              <Piecewise<Bezier> as From<&glifparser::glif::mfek::MFEKContour<T>>>
              <Piecewise<Bezier> as From<glifparser::glif::mfek::MFEKContour<T>>>
              <Piecewise<Piecewise<Bezier>> as From<&Vec<Vec<glifparser::point::Point<T>>>>>
            and 3 others
note: required by `std::convert::From::from`

error[E0277]: the trait bound `Piecewise<_>: From<&MFEKContour<util::MFEKGlifPointData>>` is not satisfied
   --> src/tools/vws/util.rs:252:30
    |
252 |             let contour_pw = Piecewise::from(contour);
    |                              ^^^^^^^^^^^^^^^ the trait `From<&MFEKContour<util::MFEKGlifPointData>>` is not implemented for `Piecewise<_>`
    |
    = help: the following implementations were found:
              <Piecewise<Bezier> as From<&Vec<glifparser::point::Point<T>>>>
              <Piecewise<Bezier> as From<&glifparser::glif::mfek::MFEKContour<T>>>
              <Piecewise<Bezier> as From<glifparser::glif::mfek::MFEKContour<T>>>
              <Piecewise<Piecewise<Bezier>> as From<&Vec<Vec<glifparser::point::Point<T>>>>>
            and 3 others
note: required by `std::convert::From::from`

error[E0277]: the trait bound `Piecewise<_>: From<&MFEKContour<util::MFEKGlifPointData>>` is not satisfied
   --> src/tools/vws/mod.rs:77:34
    |
77  |                 let contour_pw = Piecewise::from(contour);
    |                                  ^^^^^^^^^^^^^^^ the trait `From<&MFEKContour<util::MFEKGlifPointData>>` is not implemented for `Piecewise<_>`
    |
    = help: the following implementations were found:
              <Piecewise<Bezier> as From<&Vec<glifparser::point::Point<T>>>>
              <Piecewise<Bezier> as From<&glifparser::glif::mfek::MFEKContour<T>>>
              <Piecewise<Bezier> as From<glifparser::glif::mfek::MFEKContour<T>>>
              <Piecewise<Piecewise<Bezier>> as From<&Vec<Vec<glifparser::point::Point<T>>>>>
            and 3 others
note: required by `std::convert::From::from`

error[E0308]: mismatched types
   --> src/tools/guidelines/mod.rs:209:17
    |
209 |                 &split_guidelines.guidelines[selected].0,
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `glifparser::guideline::Guideline`, found struct `Guideline`
    |
    = note: expected reference `&glifparser::guideline::Guideline<_>`
               found reference `&Guideline<util::MFEKGlifPointData>`
    = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
  --> src/tools/pen.rs:89:40
   |
89 |                 let bez = Bezier::from(&point, &next_point);
   |                                        ^^^^^^ expected struct `glifparser::point::Point`, found struct `glifparser::Point`
   |
   = note: expected reference `&glifparser::point::Point<_>`
              found reference `&glifparser::Point<util::MFEKGlifPointData>`
   = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
  --> src/tools/pen.rs:89:48
   |
89 |                 let bez = Bezier::from(&point, &next_point);
   |                                                ^^^^^^^^^^^ expected struct `glifparser::point::Point`, found struct `glifparser::Point`
   |
   = note: expected reference `&glifparser::point::Point<_>`
              found reference `&glifparser::Point<util::MFEKGlifPointData>`
   = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
  --> src/tools/pen.rs:97:31
   |
97 |                     point.a = sub_a[1].to_handle();
   |                               ^^^^^^^^^^^^^^^^^^^^ expected enum `glifparser::Handle`, found enum `glifparser::point::Handle`
   |
   = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
  --> src/tools/pen.rs:98:36
   |
98 |                     next_point.b = sub_b[2].to_handle();
   |                                    ^^^^^^^^^^^^^^^^^^^^ expected enum `glifparser::Handle`, found enum `glifparser::point::Handle`
   |
   = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
   --> src/tools/pen.rs:111:30
    |
111 | ...                   (sub_b[1].to_handle(), sub_a[2].to_handle()),
    |                        ^^^^^^^^^^^^^^^^^^^^ expected enum `glifparser::Handle`, found enum `glifparser::point::Handle`
    |
    = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
   --> src/tools/pen.rs:111:52
    |
111 | ...                   (sub_b[1].to_handle(), sub_a[2].to_handle()),
    |                                              ^^^^^^^^^^^^^^^^^^^^ expected enum `glifparser::Handle`, found enum `glifparser::point::Handle`
    |
    = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
   --> src/tools/pen.rs:193:21
    |
193 |                     Handle::At(info.a.0, info.a.1),
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `glifparser::point::Handle`, found enum `glifparser::Handle`
    |
    = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
   --> src/tools/pen.rs:194:21
    |
194 |                     Handle::At(info.b.0, info.b.1),
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `glifparser::point::Handle`, found enum `glifparser::Handle`
    |
    = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
   --> src/tools/pen.rs:228:45
    |
228 |                         UIPointType::Point((point.a, point.b)),
    |                                             ^^^^^^^ expected enum `glifparser::point::Handle`, found enum `glifparser::Handle`
    |
    = note: perhaps two different versions of crate `glifparser` are being used?

error[E0308]: mismatched types
   --> src/tools/pen.rs:228:54
    |
228 |                         UIPointType::Point((point.a, point.b)),
    |                                                      ^^^^^^^ expected enum `glifparser::point::Handle`, found enum `glifparser::Handle`
    |
    = note: perhaps two different versions of crate `glifparser` are being used?

warning: unused import: `MFEKmath::Fixup`
 --> src/editor/io.rs:9:5
  |
9 | use MFEKmath::Fixup as _;
  |     ^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: `MFEKmath::polar::PolarCoordinates`
 --> src/user_interface/util.rs:2:5
  |
2 | use MFEKmath::polar::PolarCoordinates;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unused import: `MFEKmath::polar::PolarCoordinates`
 --> src/tool_behaviors/move_handle.rs:4:5
  |
4 | use MFEKmath::polar::PolarCoordinates as _;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unused import: `Evaluate`
 --> src/tools/vws/util.rs:6:16
  |
6 | use MFEKmath::{Evaluate, Piecewise, Vector};
  |                ^^^^^^^^

warning: unused import: `Evaluate`
  --> src/tools/vws/mod.rs:10:16
   |
10 | use MFEKmath::{Evaluate, Piecewise};
   |                ^^^^^^^^

Some errors have detailed explanations: E0271, E0277, E0308, E0599.
For more information about an error, try `rustc --explain E0271`.
warning: `MFEKglif` (bin "MFEKglif") generated 5 warnings
error: could not compile `MFEKglif` due to 47 previous errors; 5 warnings emitted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions