]> git.proxmox.com Git - rustc.git/blobdiff - vendor/tendril/src/lib.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / tendril / src / lib.rs
index a078716636b8d5e69a9e3cf575a95edc39ade180..33782fdc2c9c8490e0d03d94158e1c92d8d78924 100644 (file)
@@ -1,31 +1,35 @@
 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
 #![cfg_attr(all(test, feature = "bench"), feature(test))]
-#![cfg_attr(test, deny(warnings))]
+//#![cfg_attr(test, deny(warnings))]
 
-#[cfg(all(test, feature = "bench"))] extern crate test;
-#[cfg(feature = "encoding")] pub extern crate encoding;
-#[cfg(feature = "encoding_rs")] pub extern crate encoding_rs;
-#[macro_use] extern crate mac;
+#[cfg(feature = "encoding")]
+pub extern crate encoding;
+#[cfg(feature = "encoding_rs")]
+pub extern crate encoding_rs;
+#[cfg(all(test, feature = "bench"))]
+extern crate test;
+#[macro_use]
+extern crate mac;
 extern crate futf;
 extern crate utf8;
 
-pub use tendril::{Tendril, ByteTendril, StrTendril, SliceExt, ReadExt, SubtendrilError};
-pub use tendril::{SendTendril, Atomicity, Atomic, NonAtomic};
 pub use fmt::Format;
 pub use stream::TendrilSink;
+pub use tendril::{Atomic, Atomicity, NonAtomic, SendTendril};
+pub use tendril::{ByteTendril, ReadExt, SliceExt, StrTendril, SubtendrilError, Tendril};
 pub use utf8_decode::IncompleteUtf8;
 
 pub mod fmt;
 pub mod stream;
 
-mod util;
 mod buf32;
 mod tendril;
 mod utf8_decode;
+mod util;
 
 static OFLOW: &'static str = "tendril: overflow in buffer arithmetic";