Add journal crate and move supporting logic into workspace crate
I needed to interact with the workspace to open a file from the journal crate, so I moved a bunch of logic out of main related to opening new workspaces and paths.
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user