From 7c75c6f86513ddc22677a914dcf30037c9872a2e Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sat, 30 Nov 2024 15:07:25 -0500 Subject: [PATCH] typical: add rust 1.83.0 build patch Signed-off-by: Rui Chen --- Formula/t/typical.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Formula/t/typical.rb b/Formula/t/typical.rb index 524c632f28151..e23a29702f3a9 100644 --- a/Formula/t/typical.rb +++ b/Formula/t/typical.rb @@ -18,6 +18,9 @@ class Typical < Formula depends_on "rust" => :build + # eliminate needless lifetimes, upstream pr ref, https://github.com/stepchowfun/typical/pull/501 + patch :DATA + def install system "cargo", "install", *std_cargo_args end @@ -53,3 +56,18 @@ def install assert_match "export type SendEmailResponseOut", generated_typescript_code end end + +__END__ +diff --git a/src/error.rs b/src/error.rs +index 4563e1e..213faf9 100644 +--- a/src/error.rs ++++ b/src/error.rs +@@ -34,7 +34,7 @@ impl fmt::Display for Error { + } + + impl error::Error for Error { +- fn source<'a>(&'a self) -> Option<&(dyn error::Error + 'static)> { ++ fn source(&self) -> Option<&(dyn error::Error + 'static)> { + self.reason.as_deref() + } + }