File tree 1 file changed +2
-10
lines changed
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -55,15 +55,6 @@ impl std::fmt::Display for FindMethodError {
55
55
56
56
impl std:: error:: Error for FindMethodError { }
57
57
58
- /*
59
- TODO: deal with the following warning:
60
- this function depends on never type fallback being `()`
61
- this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
62
- for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
63
- specify the types explicitly
64
- `#[warn(dependency_on_unit_never_type_fallback)]` on by defaultrustcClick for full compiler diagnostic
65
- exec.rs(84, 37): in edition 2024, the requirement `!: Serialize` will fail
66
- */
67
58
pub async fn main ( args : & ExecArgs ) -> Result < ( ) , Box < dyn Error > > {
68
59
debug ! ( "{:?}" , args) ;
69
60
@@ -90,7 +81,8 @@ pub async fn main(args: &ExecArgs) -> Result<(), Box<dyn Error>> {
90
81
debug ! ( "Raw result:\n {:#?}" , & res) ;
91
82
92
83
// Print the result to stdout in pretty JSON format
93
- println ! ( "{}" , to_string_pretty( & from_str( & res) ?) ?) ;
84
+ let json: Value = from_str ( & res) ?;
85
+ println ! ( "{}" , to_string_pretty( & json) ?) ;
94
86
95
87
Ok ( ( ) )
96
88
}
You can’t perform that action at this time.
0 commit comments