Merge branch 'main' into share-project
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
commit
466a377e1d
16 changed files with 423 additions and 306 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue