Skip to content

Commit

Permalink
Minor changes to pass clippy in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dezoito committed May 18, 2024
1 parent a351003 commit 8e54028
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
toolchain: stable

- name: Install system dependencies
# run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev
run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf

- name: Install cargo audit
Expand Down
3 changes: 3 additions & 0 deletions notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
run `yarn tauri dev` to start app in dev environment

Note: `bun tauri dev` works on linux, but not on Macs right now.s

fixes webkit bs in some linux instalations
export WEBKIT_DISABLE_COMPOSITING_MODE=1
8 changes: 2 additions & 6 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,7 @@ pub async fn wait_and_return(duration_seconds: u64) -> String {
pub fn split_host_port(url: &str) -> Result<(String, u16), ParseError> {
let some_url = Url::parse(url)?;
Ok((
format!(
"{}://{}",
some_url.scheme(),
some_url.host_str().unwrap().to_string(),
),
format!("{}://{}", some_url.scheme(), some_url.host_str().unwrap(),),
some_url.port().unwrap(),
))
}
Expand All @@ -131,7 +127,7 @@ pub async fn log_experiment(

// Create the logs directory if it doesn't exist
if !Path::new(&app_data_dir).exists() {
fs::create_dir(&app_data_dir)?;
fs::create_dir(app_data_dir)?;
}

let mut log_data = if Path::new(&log_file_path).exists() {
Expand Down

0 comments on commit 8e54028

Please sign in to comment.