Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

supress intended clippy warnings #176

Merged
merged 1 commit into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions coffee_core/src/coffee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,26 +90,26 @@ impl CoffeeManager {
/// when coffee is configured, run an inventory to collect all the necessary information
/// about the coffee ecosystem.
async fn inventory(&mut self) -> Result<(), CoffeeError> {
self.storage
let _ = self
.storage
.load::<CoffeeStorageInfo>(&self.config.network)
.await
.and_then(|store| {
.map(|store| {
tareknaser marked this conversation as resolved.
Show resolved Hide resolved
self.config = store.config;
Ok(())
});
vincenzopalazzo marked this conversation as resolved.
Show resolved Hide resolved
// FIXME: check if this exist in a better wai
self.storage
let _ = self
.storage
.load::<HashMap<RepoName, RepositoryInfo>>("repositories")
.await
.and_then(|item| {
.map(|item| {
log::debug!("repositories in store {:?}", item);
item.iter().for_each(|repo| match repo.1.kind {
Kind::Git => {
let repo = Github::from(repo.1);
self.repos.insert(repo.name(), Box::new(repo));
}
});
Ok(())
});

if let Err(err) = self.coffee_cln_config.parse() {
Expand Down
1 change: 0 additions & 1 deletion tests/src/coffee_integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ pub async fn install_plugin_in_two_networks() -> anyhow::Result<()> {
network: "regtest".to_string(),
};
let mut manager = CoffeeTesting::tmp_with_args(&args, dir.clone()).await?;
let root_path = manager.root_path().to_owned();
let result = manager.coffee().setup(&lightning_regtest_dir).await;
assert!(result.is_ok(), "{:?}", result);
// Add lightningd remote repository
Expand Down
Loading