Skip to content

Commit 0a62535

Browse files
committed
Change compile_dir path to &Path
1 parent 64f1024 commit 0a62535

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

derive/src/compile_bytecode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use rustpython_compiler::compile;
2222
use std::collections::HashMap;
2323
use std::env;
2424
use std::fs;
25-
use std::path::PathBuf;
25+
use std::path::{Path, PathBuf};
2626
use syn::parse::{Parse, ParseStream, Result as ParseResult};
2727
use syn::{self, parse2, Lit, LitByteStr, LitStr, Meta, Token};
2828

@@ -82,7 +82,7 @@ impl CompilationSource {
8282

8383
fn compile_dir(
8484
&self,
85-
path: &PathBuf,
85+
path: &Path,
8686
parent: String,
8787
mode: &compile::Mode,
8888
) -> Result<HashMap<String, CodeObject>, Diagnostic> {

0 commit comments

Comments
 (0)