Skip to content

Commit 98bee9f

Browse files
authored
Merge pull request #199602 from Homebrew/toast-rust-1.83.0
toast: add rust 1.83.0 build patch
2 parents 67ed6ef + dda7f69 commit 98bee9f

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

Formula/t/toast.rb

+23-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
class Toast < Formula
22
desc "Tool for running tasks in containers"
33
homepage "https://github.com/stepchowfun/toast"
4-
url "https://github.com/stepchowfun/toast/archive/refs/tags/v0.47.6.tar.gz"
5-
sha256 "6cda205ec551232106a05a94b6a71d9eb90e4d3bf1541e629062c65257aa3e6a"
64
license "MIT"
75
head "https://github.com/stepchowfun/toast.git", branch: "main"
86

7+
stable do
8+
url "https://github.com/stepchowfun/toast/archive/refs/tags/v0.47.6.tar.gz"
9+
sha256 "6cda205ec551232106a05a94b6a71d9eb90e4d3bf1541e629062c65257aa3e6a"
10+
11+
# eliminate needless lifetimes, upstream pr ref, https://github.com/stepchowfun/toast/pull/524
12+
patch :DATA
13+
end
14+
915
bottle do
1016
sha256 cellar: :any_skip_relocation, arm64_sequoia: "32d64e56a321339f6c83f3df40c5078da1b9327bdda1db3c96a1f0d59fb2cb27"
1117
sha256 cellar: :any_skip_relocation, arm64_sonoma: "e1dad05bd1a76d6196771c60a29cc3c2256daa2aefd8d0876f24456e5d53a920"
@@ -37,3 +43,18 @@ def install
3743
assert_match "homebrew_test", shell_output("#{bin}/toast --list")
3844
end
3945
end
46+
47+
__END__
48+
diff --git a/src/failure.rs b/src/failure.rs
49+
index bb01653..05ab70b 100644
50+
--- a/src/failure.rs
51+
+++ b/src/failure.rs
52+
@@ -24,7 +24,7 @@ impl fmt::Display for Failure {
53+
}
54+
55+
impl error::Error for Failure {
56+
- fn source<'a>(&'a self) -> Option<&(dyn error::Error + 'static)> {
57+
+ fn source(&self) -> Option<&(dyn error::Error + 'static)> {
58+
match self {
59+
Self::System(_, source) => source.as_ref().map(|e| &**e),
60+
Self::User(_, source) => source.as_ref().map(|e| &**e),

0 commit comments

Comments
 (0)