rustdoc: Moved `SCHEMA_VERSION` to `clean`.
it should be changed when the module gets updated, so it helps to have the `SCHEMA_VERSION` with the definitions themselves.
This commit is contained in:
parent
b03547bac1
commit
bec77eb9c5
|
@ -32,6 +32,10 @@ use core;
|
||||||
use doctree;
|
use doctree;
|
||||||
use visit_ast;
|
use visit_ast;
|
||||||
|
|
||||||
|
/// A stable identifier to the particular version of JSON output.
|
||||||
|
/// Increment this when the `Crate` and related structures change.
|
||||||
|
pub static SCHEMA_VERSION: &'static str = "0.8.2";
|
||||||
|
|
||||||
pub trait Clean<T> {
|
pub trait Clean<T> {
|
||||||
fn clean(&self) -> T;
|
fn clean(&self) -> T;
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,9 @@ use std::io::{File, MemWriter};
|
||||||
use std::str;
|
use std::str;
|
||||||
use serialize::{json, Decodable, Encodable};
|
use serialize::{json, Decodable, Encodable};
|
||||||
|
|
||||||
|
// reexported from `clean` so it can be easily updated with the mod itself
|
||||||
|
pub use clean::SCHEMA_VERSION;
|
||||||
|
|
||||||
pub mod clean;
|
pub mod clean;
|
||||||
pub mod core;
|
pub mod core;
|
||||||
pub mod doctree;
|
pub mod doctree;
|
||||||
|
@ -55,8 +58,6 @@ pub mod visit_ast;
|
||||||
pub mod test;
|
pub mod test;
|
||||||
mod flock;
|
mod flock;
|
||||||
|
|
||||||
pub static SCHEMA_VERSION: &'static str = "0.8.1";
|
|
||||||
|
|
||||||
type Pass = (&'static str, // name
|
type Pass = (&'static str, // name
|
||||||
fn(clean::Crate) -> plugins::PluginResult, // fn
|
fn(clean::Crate) -> plugins::PluginResult, // fn
|
||||||
&'static str); // description
|
&'static str); // description
|
||||||
|
|
Loading…
Reference in New Issue