Skip to content

Commit

Permalink
satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rbalicki2 committed Jan 6, 2025
1 parent 6145e31 commit 581bb44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/isograph_compiler/src/source_files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,11 @@ impl SourceFiles {

fn create_or_update_schema_extension(
&mut self,
path: &PathBuf,
path: &Path,
config: &CompilerConfig,
) -> Result<(), BatchCompileError> {
let absolute_and_relative =
absolute_and_relative_paths(config.current_working_directory, path.clone());
absolute_and_relative_paths(config.current_working_directory, path.to_path_buf());
let (file_path, document) =
read_and_parse_schema_extensions(&absolute_and_relative, config)?;
self.schema_extensions.insert(file_path, document);
Expand Down
2 changes: 1 addition & 1 deletion crates/isograph_lsp/src/semantic_tokens/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub fn on_semantic_token_full_request(
&PathBuf::from(text_document.uri.path()),
);
let text_source = TextSource {
relative_path_to_source_file: file_path.into(),
relative_path_to_source_file: file_path,
span: Some(Span::new(
iso_literal_start_index as u32,
(iso_literal_start_index + iso_literal_text.len()) as u32,
Expand Down

0 comments on commit 581bb44

Please sign in to comment.