Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Change compile_dir path to &Path
  • Loading branch information
palaviv committed Jul 22, 2019
commit 0a6253593f73cadd709890c02cd0c54c952e456a
4 changes: 2 additions & 2 deletions derive/src/compile_bytecode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use rustpython_compiler::compile;
use std::collections::HashMap;
use std::env;
use std::fs;
use std::path::PathBuf;
use std::path::{Path, PathBuf};
use syn::parse::{Parse, ParseStream, Result as ParseResult};
use syn::{self, parse2, Lit, LitByteStr, LitStr, Meta, Token};

Expand Down Expand Up @@ -82,7 +82,7 @@ impl CompilationSource {

fn compile_dir(
&self,
path: &PathBuf,
path: &Path,
parent: String,
mode: &compile::Mode,
) -> Result<HashMap<String, CodeObject>, Diagnostic> {
Expand Down