File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ use core;
3232use doctree;
3333use visit_ast;
3434
35+ /// A stable identifier to the particular version of JSON output.
36+ /// Increment this when the `Crate` and related structures change.
37+ pub static SCHEMA_VERSION : & ' static str = "0.8.2" ;
38+
3539pub trait Clean < T > {
3640 fn clean ( & self ) -> T ;
3741}
Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ use std::io::{File, MemWriter};
3434use std:: str;
3535use serialize:: { json, Decodable , Encodable } ;
3636
37+ // reexported from `clean` so it can be easily updated with the mod itself
38+ pub use clean:: SCHEMA_VERSION ;
39+
3740pub mod clean;
3841pub mod core;
3942pub mod doctree;
@@ -55,8 +58,6 @@ pub mod visit_ast;
5558pub mod test;
5659mod flock;
5760
58- pub static SCHEMA_VERSION : & ' static str = "0.8.1" ;
59-
6061type Pass = ( & ' static str , // name
6162 fn ( clean:: Crate ) -> plugins:: PluginResult , // fn
6263 & ' static str ) ; // description
You can’t perform that action at this time.
0 commit comments