diff options
Diffstat (limited to 'src/vcs')
-rw-r--r-- | src/vcs/git.rs | 2 | ||||
-rw-r--r-- | src/vcs/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vcs/git.rs b/src/vcs/git.rs index c745c46..5b8ad96 100644 --- a/src/vcs/git.rs +++ b/src/vcs/git.rs @@ -185,7 +185,7 @@ impl super::VcsInfo for GitInfo { } } -pub fn detect() -> Option<Box<super::VcsInfo>> { +pub fn detect() -> Option<Box<dyn super::VcsInfo>> { start_talking_about_time!("git::detect"); let git = git2::Repository::open_from_env().ok(); diff --git a/src/vcs/mod.rs b/src/vcs/mod.rs index b7a9fc7..e672ec6 100644 --- a/src/vcs/mod.rs +++ b/src/vcs/mod.rs @@ -38,7 +38,7 @@ pub trait VcsInfo { } } -pub fn detect() -> Option<Box<VcsInfo>> { +pub fn detect() -> Option<Box<dyn VcsInfo>> { if let Some(git) = git::detect() { Some(git) } |