Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Bash by ljia ( 8 years ago )
let output_str = String::from_utf8(output).map_err(|e| {
        Box::new(format!("Failed to convert output to string. Error {}.", e));
    })?;
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>error[E0277]: the trait bound `std::boxed::Box<std>: std::convert::From<()>` is not satisfied
  --> src/tpm.rs:53:22                                                                                   
   |                                                                                                     
53 |       let output_str = String::from_utf8(output).map_err(|e| {                                      
   |  ______________________^                                                                            
54 | |         Box::new(format!("Failed to convert output to string. Error {}.", e));                    
55 | |     })?;                                                                                          
   | |_______^ the trait `std::convert::From<()>` is not implemented for `std::boxed::Box<std>`
   |                                                                                                     
   = help: the following implementations were found: <std>as std::convert::From<E>><std>as std::convert::From<&'a str>><std>as std::convert::From<std>><std>as std::convert::From<&'a std::path::Path>>and 16 others                                                                                 
   = note: required by `std::convert::From::from`                                                        
                                                                                                         
error: aborting due to previous error                                                                    
                                                                                                         
For more information about this error, try `rustc --explain E0277`.                                      
error: Could not compile `keylime_node`.                                                                 

To learn more, run the command again with --verbose.

 

Revise this Paste

Your Name: Code Language: