Skip to content

Commit

Permalink
more lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega committed Dec 29, 2023
1 parent 510bd8b commit 05b1915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sinks/file_rotate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub struct Worker {
impl gasket::framework::Worker<Stage> for Worker {
async fn bootstrap(stage: &Stage) -> Result<Self, WorkerError> {
let output_path = match &stage.config.output_path {
Some(x) => PathBuf::try_from(x).map_err(Error::config).or_panic()?,
Some(x) => PathBuf::from(x),
None => stage.current_dir.clone(),
};

Expand Down

0 comments on commit 05b1915

Please sign in to comment.