Replace deref with as_deref

This commit is contained in:
Yuki Okushi
2019-07-06 03:35:19 +09:00
parent f2a97210b2
commit 59634bc1d4
10 changed files with 11 additions and 11 deletions

View File

@@ -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";