Replace deref with as_deref
This commit is contained in:
parent
f2a97210b2
commit
59634bc1d4
10 changed files with 11 additions and 11 deletions
|
|
@ -2137,7 +2137,7 @@ impl Context {
|
|||
self.shared.fs.write(&final_file, &v)?;
|
||||
|
||||
// Generating settings page.
|
||||
let settings = Settings::new(self.shared.static_root_path.deref().unwrap_or("./"),
|
||||
let settings = Settings::new(self.shared.static_root_path.as_deref().unwrap_or("./"),
|
||||
&self.shared.resource_suffix);
|
||||
page.title = "Rustdoc settings";
|
||||
page.description = "Settings of Rustdoc";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue