Swapped out to_string_lossy with display for user facing text (#5666)

Signed-off-by: Vincent Huang <vhuang@squareup.com>
This commit is contained in:
Vincent H.
2025-11-11 06:10:45 -08:00
committed by GitHub
parent 9345319ade
commit 23f26fb9e1
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1142,7 +1142,7 @@ pub async fn cli() -> anyhow::Result<()> {
.and_then(|rf| {
goose::recipe::template_recipe::parse_recipe_content(
&rf.content,
Some(rf.parent_dir.to_string_lossy().to_string()),
Some(rf.parent_dir.display().to_string()),
)
.ok()
.map(|(r, _)| r.version)
@@ -42,7 +42,7 @@ pub fn list_available_recipes() -> Result<Vec<RecipeInfo>> {
RecipeInfo {
name,
source: RecipeSource::Local,
path: path.to_string_lossy().to_string(),
path: path.display().to_string(),
title: Some(recipe.title),
description: Some(recipe.description),
}