]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_metadata/schema.rs
Various minor/cosmetic improvements to code
[rust.git] / src / librustc_metadata / schema.rs
index e91d15b78c0759364d280d877dc2586c58f9b435..1ae3f0a12bdd0ae912a66ab9b9087001eac722e1 100644 (file)
@@ -40,7 +40,7 @@ pub fn rustc_version() -> String {
 }
 
 /// Metadata encoding version.
-/// NB: increment this if you change the format of metadata such that
+/// N.B., increment this if you change the format of metadata such that
 /// the rustc version can't be found to compare with `rustc_version()`.
 pub const METADATA_VERSION: u8 = 4;
 
@@ -52,7 +52,7 @@ pub fn rustc_version() -> String {
 /// This header is followed by the position of the `CrateRoot`,
 /// which is encoded as a 32-bit big-endian unsigned integer,
 /// and further followed by the rustc version string.
-pub const METADATA_HEADER: &'static [u8; 12] =
+pub const METADATA_HEADER: &[u8; 12] =
     &[0, 0, 0, 0, b'r', b'u', b's', b't', 0, 0, 0, METADATA_VERSION];
 
 /// A value of type T referred to by its absolute position