Skip to content

Commit fc26ba5

Browse files
committed
Fix needless_return lint issues
1 parent 94985be commit fc26ba5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/application.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ where ModuleProvider: module::ModuleProvider + Send + 'static
138138

139139
fn open_repository() -> Result<Repository, Exit> {
140140
Repository::open_from_env().map_err(|err| {
141-
return Exit::new(
141+
Exit::new(
142142
ExitStatus::StateError,
143143
format!("Unable to load Git repository: {err}").as_str(),
144-
);
144+
)
145145
})
146146
}
147147

0 commit comments

Comments
 (0)