Merge branch 'main' into share-project

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-12-20 11:42:59 -08:00
co-authored by Nathan Sobo
16 changed files with 423 additions and 306 deletions
+4 -1
View File
@@ -43,7 +43,10 @@ pub trait ResultExt {
fn warn_on_err(self) -> Option<Self::Ok>;
}
impl<T> ResultExt for anyhow::Result<T> {
impl<T, E> ResultExt for Result<T, E>
where
E: std::fmt::Debug,
{
type Ok = T;
fn log_err(self) -> Option<T> {