diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-04-11 08:15:14 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-04-14 04:53:33 +0000 |
| commit | 3bf9fc0c2a532c32704dd710c8dd40cf9c296205 (patch) | |
| tree | 2d88877b52f263b4745ca507240c50d475b733df /src/librustdoc/html/format.rs | |
| parent | 1e5942469dfedea0ba7d64d116d04b4c7e17d9cb (diff) | |
| download | rust-3bf9fc0c2a532c32704dd710c8dd40cf9c296205.tar.gz rust-3bf9fc0c2a532c32704dd710c8dd40cf9c296205.zip | |
Fix fallout in rustdoc
Diffstat (limited to 'src/librustdoc/html/format.rs')
| -rw-r--r-- | src/librustdoc/html/format.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs index ce20ad05acb..d2b43ae5bda 100644 --- a/src/librustdoc/html/format.rs +++ b/src/librustdoc/html/format.rs @@ -31,7 +31,7 @@ use html::render::{cache, CURRENT_LOCATION_KEY}; /// Helper to render an optional visibility with a space after it (if the /// visibility is preset) #[derive(Copy, Clone)] -pub struct VisSpace<'a>(pub &'a Option<hir::Visibility>); +pub struct VisSpace<'a>(pub &'a Option<clean::Visibility>); /// Similarly to VisSpace, this structure is used to render a function style with a /// space after it. #[derive(Copy, Clone)] @@ -57,7 +57,7 @@ pub struct CommaSep<'a, T: 'a>(pub &'a [T]); pub struct AbiSpace(pub Abi); impl<'a> VisSpace<'a> { - pub fn get(self) -> &'a Option<hir::Visibility> { + pub fn get(self) -> &'a Option<clean::Visibility> { let VisSpace(v) = self; v } } @@ -639,8 +639,8 @@ impl<'a> fmt::Display for Method<'a> { impl<'a> fmt::Display for VisSpace<'a> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self.get() { - Some(hir::Public) => write!(f, "pub "), - Some(hir::Inherited) | None => Ok(()) + Some(clean::Public) => write!(f, "pub "), + Some(clean::Inherited) | None => Ok(()) } } } |
