Skip to content

Commit c4720a9

Browse files
committed
Box large error
1 parent 1ef6a7d commit c4720a9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

asyncgit/src/error.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ pub enum Error {
147147

148148
///
149149
#[error("gix_blame error: {0}")]
150-
GixBlame(#[from] gix_blame::Error),
150+
GixBlame(#[from] Box<gix_blame::Error>),
151151

152152
///
153153
#[error("amend error: config commit.gpgsign=true detected.\ngpg signing is not supported for amending non-last commits")]
@@ -190,3 +190,9 @@ impl From<gix::repository::diff_resource_cache::Error> for Error {
190190
Self::GixRepositoryDiffResourceCache(Box::new(error))
191191
}
192192
}
193+
194+
impl From<gix_blame::Error> for Error {
195+
fn from(error: gix_blame::Error) -> Self {
196+
Self::GixBlame(Box::new(error))
197+
}
198+
}

0 commit comments

Comments
 (0)