diff options
| author | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2022-10-29 14:49:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-29 14:49:00 -0700 |
| commit | c9dbfe31e2e7001571e4d21e46f93d96489df791 (patch) | |
| tree | d3b6fcbc9dab68ac61e2925443c37463b9432412 | |
| parent | 0b0bf10533ce955e6bcc44c2392674f53c2f3952 (diff) | |
| download | rust-c9dbfe31e2e7001571e4d21e46f93d96489df791.tar.gz rust-c9dbfe31e2e7001571e4d21e46f93d96489df791.zip | |
Move string literal into format string
Co-authored-by: Michael Howell <michael@notriddle.com>
| -rw-r--r-- | src/librustdoc/html/layout.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs index c1b3526eb45..48c6abfca90 100644 --- a/src/librustdoc/html/layout.rs +++ b/src/librustdoc/html/layout.rs @@ -38,7 +38,7 @@ impl<'a> Page<'a> { pub(crate) fn get_static_root_path(&self) -> String { match self.static_root_path { Some(s) => s.to_string(), - None => format!("{}{}", self.root_path, "static.files/"), + None => format!("{}static.files/", self.root_path), } } } |
