Skip to content

Commit

Permalink
refactor: pass &Path instead of &PathBuf
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Apr 17, 2024
1 parent 9ebe037 commit d167f9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/state.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::path::PathBuf;
use std::path::Path;

use a2::{Client, Endpoint};
use anyhow::{Context as _, Result};
Expand Down Expand Up @@ -28,7 +28,7 @@ pub struct InnerState {

impl State {
pub fn new(
db: &PathBuf,
db: &Path,
mut certificate: std::fs::File,
password: &str,
topic: Option<String>,
Expand Down

0 comments on commit d167f9c

Please sign in to comment.