Skip to content

Commit 2c53cdc

Browse files
authored
Merge pull request #338 from spl/clippy-needless_return
cargo clippy: fix needless_return
2 parents f02066a + 9c69a4d commit 2c53cdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/config.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,12 @@ impl PersistentConfig {
176176
}
177177
let bundle =
178178
self.make_cached_url_provider(&self.default_bundles[0].url, only_cached, status)?;
179-
return Ok(Box::new(bundle) as _);
179+
Ok(Box::new(bundle) as _)
180180
}
181181

182182
pub fn format_cache_path(&self) -> Result<PathBuf> {
183183
if CONFIG_TEST_MODE_ACTIVATED.load(Ordering::SeqCst) {
184-
return Ok(::test_util::test_path(&[]));
184+
Ok(::test_util::test_path(&[]))
185185
} else {
186186
Ok(app_dir(AppDataType::UserCache, &::APP_INFO, "formats")?)
187187
}

0 commit comments

Comments
 (0)