Closed notriddle closed 1 year ago
Clippy warning:
error: type `Document` implements inherent method `to_string(&self) -> String` which shadows the implementation of `Display` --> src/lib.rs:2670:5 | 2670 | / pub fn to_string(&self) -> String { 2671 | | let opts = Self::serialize_opts(); 2672 | | let mut ret_val = Vec::new(); 2673 | | let inner: SerializableHandle = self.0.document.children.borrow()[0].clone().into(); ... | 2676 | | String::from_utf8(ret_val).expect("html5ever only supports UTF8") 2677 | | } | |_____^ | = note: `#[deny(clippy::inherent_to_string_shadow_display)]` on by default = help: remove the inherent method from type `Document` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inherent_to_string_shadow_display
Found while working on https://github.com/rust-ammonia/ammonia/pull/166
Clippy warning: