@@ -201,7 +201,7 @@ impl HighlightingAssets {
201201 // Get the path of the file:
202202 // If this was set by the metadata, that will take priority.
203203 // If it wasn't, it will use the real file path (if available).
204− let path_str = input
204+ let path = input
205205 .metadata
206206 .user_provided_name
207207 .as_ref()
@@ -210,9 +210,8 @@ impl HighlightingAssets {
210210 _ => None,
211211 });
212212
213− let path_syntax = if let Some(path_str) = path_str {
213+ let path_syntax = if let Some(path) = path {
214214 // If a path was provided, we try and detect the syntax based on extension mappings.
215− let path = Path::new(path_str);
216215 let absolute_path = PathAbs::new(path)
217216 .ok()
218217 .map(|p| p.as_path().to_path_buf())