Skip to content

Commit cc93d99

Browse files
authored
Merge pull request #199601 from Homebrew/typical-rust-1.83.0
typical: add rust 1.83.0 build patch
2 parents 98bee9f + 7c75c6f commit cc93d99

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Formula/t/typical.rb

+18
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ class Typical < Formula
1818

1919
depends_on "rust" => :build
2020

21+
# eliminate needless lifetimes, upstream pr ref, https://github.com/stepchowfun/typical/pull/501
22+
patch :DATA
23+
2124
def install
2225
system "cargo", "install", *std_cargo_args
2326
end
@@ -53,3 +56,18 @@ def install
5356
assert_match "export type SendEmailResponseOut", generated_typescript_code
5457
end
5558
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+
}

0 commit comments

Comments
 (0)