marirs / nparse

Parser library for specific use-cases
MIT License
1 stars 1 forks source link

Some tests not passed with v0.0.8 #4

Closed tim77 closed 1 year ago

tim77 commented 1 year ago

cargo -t

warning: unused import: `nparse::KEVStrToJson`
 --> examples/os-release.rs:1:5
  |
1 | use nparse::KEVStrToJson;
  |     ^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

error[E0599]: no method named `kv_str_to_json` found for struct `String` in the current scope
  --> examples/os-release.rs:13:22
   |
13 |     let result = out.kv_str_to_json();
   |                      ^^^^^^^^^^^^^^ method not found in `String`
   |
  ::: /home/user/nparse/src/lib.rs:42:8
   |
42 |     fn kv_str_to_json(&self) -> Result<Value, String>;
   |        -------------- the method is available for `String` here
   |
   = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
   |
1  + use nparse::KVStrToJson;
   |

For more information about this error, try `rustc --explain E0599`.
warning: `nparse` (example "os-release") generated 1 warning
error: could not compile `nparse` (example "os-release") due to previous error; 1 warning emitted
warning: build failed, waiting for other jobs to finish...

Old version 612dfc6837de611f938d493108afd84f1836e861 used to pass all tests.

marirs commented 1 year ago

The linux portion of the example was not changed. My bad. Sorry about that. Please check now.

I've tested in aarch64, x86-64, i686 of linux, and x86_64 and aarch64 of apple darwin