Skip to content

Commit

Permalink
Merge pull request #27 from golemcloud/debug-for-error-enums
Browse files Browse the repository at this point in the history
Add derive Debug for error enums
  • Loading branch information
noise64 authored Jan 28, 2025
2 parents ed39f9c + 304bf5d commit 412550c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rust/client_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ fn render_errors(method_name: &str, error_kind: &ErrorKind, errors: &MethodError

#[rustfmt::skip]
let res = unit() +
line(unit() + "#[derive(Debug)]") +
line(unit() + "pub enum " + name + " {") +
indented(
code_cases
Expand Down
1 change: 1 addition & 0 deletions src/rust/error_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pub fn error_gen() -> Module {
let code = indoc! { r#"
use bytes::Bytes;
#[derive(Debug)]
pub enum Error<T> {
Item(T),
Reqwest(reqwest::Error),
Expand Down

0 comments on commit 412550c

Please sign in to comment.