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.
cargo -t
Old version 612dfc6837de611f938d493108afd84f1836e861 used to pass all tests.