File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ class Typical < Formula
18
18
19
19
depends_on "rust" => :build
20
20
21
+ # eliminate needless lifetimes, upstream pr ref, https://github.com/stepchowfun/typical/pull/501
22
+ patch :DATA
23
+
21
24
def install
22
25
system "cargo" , "install" , *std_cargo_args
23
26
end
@@ -53,3 +56,18 @@ def install
53
56
assert_match "export type SendEmailResponseOut" , generated_typescript_code
54
57
end
55
58
end
59
+
60
+ __END__
61
+ diff --git a/src/error.rs b/src/error.rs
62
+ index 4563e1e..213faf9 100644
63
+ --- a/src/error.rs
64
+ +++ b/src/error.rs
65
+ @@ -34,7 +34,7 @@ impl fmt::Display for Error {
66
+ }
67
+
68
+ impl error::Error for Error {
69
+ - fn source<'a>(&'a self) -> Option<&(dyn error::Error + 'static)> {
70
+ + fn source(&self) -> Option<&(dyn error::Error + 'static)> {
71
+ self.reason.as_deref()
72
+ }
73
+ }
You can’t perform that action at this time.
0 commit comments