Skip to content

Commit

Permalink
chore:clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyg committed Sep 25, 2024
1 parent 34eae37 commit e7527c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 6 additions & 8 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ use std::path::PathBuf;
use tauri_plugin_holochain::{HolochainPluginConfig, HolochainExt, WANNetworkConfig};
use tauri::AppHandle;

const APP_ID: &'static str = "mewsfeed";
const SIGNAL_URL: &'static str = "wss://sbd.holo.host";
const BOOTSTRAP_URL: &'static str = "https://bootstrap-0.infra.holochain.org";
const APP_ID: &str = "mewsfeed";
const SIGNAL_URL: &str = "wss://sbd.holo.host";
const BOOTSTRAP_URL: &str = "https://bootstrap-0.infra.holochain.org";

pub fn happ_bundle() -> AppBundle {
let bytes = include_bytes!("../../workdir/mewsfeed.happ");
Expand Down Expand Up @@ -59,9 +59,8 @@ async fn setup(handle: AppHandle) -> anyhow::Result<()> {
let installed_apps = admin_ws
.list_apps(None)
.await
.map_err(|err| tauri_plugin_holochain::Error::ConductorApiError(err))?;

if installed_apps.iter().find(|app| app.installed_app_id.as_str().eq(APP_ID)).is_none() {
.map_err(tauri_plugin_holochain::Error::ConductorApiError)?;
if !installed_apps.iter().any(|app| app.installed_app_id.as_str().eq(APP_ID)) {
handle
.holochain()?
.install_app(
Expand Down Expand Up @@ -119,8 +118,7 @@ fn holochain_dir() -> PathBuf {

// Convert `tmp_dir` into a `Path`, destroying the `TempDir`
// without deleting the directory.
let tmp_path = tmp_dir.into_path();
tmp_path
tmp_dir.into_path()
}
} else {
app_dirs2::app_root(
Expand Down

0 comments on commit e7527c2

Please sign in to comment.