mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
take &Path
instead of PathBuf
This commit is contained in:
parent
9d9e637ef3
commit
2c4cfb297e
3 changed files with 5 additions and 5 deletions
|
@ -77,7 +77,7 @@ pub fn update(path: &Path, contents: &str, verify: bool) -> Result<()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn render_template(template: PathBuf) -> Result<String> {
|
||||
pub fn render_template(template: &Path) -> Result<String> {
|
||||
let grammar: ron::value::Value = {
|
||||
let text = fs::read_to_string(project_root().join(GRAMMAR))?;
|
||||
ron::de::from_str(&text)?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue