Skip to content

Commit

Permalink
use string interpolation for ipc service name
Browse files Browse the repository at this point in the history
  • Loading branch information
dmackdev committed Nov 21, 2024
1 parent 13e2d46 commit 2964ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ fn create_speaker_notes_service_builder(
presentation_path: &Path,
) -> Result<Builder<SpeakerNotesCommand, (), Service>, Box<dyn std::error::Error>> {
let file_name = presentation_path.file_name().expect("failed to resolve presentation file name").to_string_lossy();
let service_name = format!("presenterm/{}", file_name).as_str().try_into()?;
let service_name = format!("presenterm/{file_name}").as_str().try_into()?;
let service = NodeBuilder::new()
.create::<Service>()?
.service_builder(&service_name)
Expand Down

0 comments on commit 2964ac9

Please sign in to comment.