-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Swapped out to_string_lossy with display for user facing text #5666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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(), | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. displayed later in commands/recipe.rs |
||
| title: Some(recipe.title), | ||
| description: Some(recipe.description), | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,7 +63,7 @@ pub fn load_local_recipe_file(recipe_name: &str) -> Result<RecipeFile> { | |
|
|
||
| let search_dirs_str = search_dirs | ||
| .iter() | ||
| .map(|p| p.to_string_lossy()) | ||
| .map(|p| p.display().to_string()) | ||
| .collect::<Vec<_>>() | ||
| .join(":"); | ||
|
Comment on lines
64
to
68
|
||
| Err(anyhow!( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Used for tracing (printing?) in line 1120