restrict clippy::string_slice
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
51df946911
commit
59d86d3641
5 changed files with 7 additions and 2 deletions
|
@ -6,6 +6,7 @@ pub struct Escape<'a>(pub &'a str);
|
|||
|
||||
/// Copied from librustdoc:
|
||||
/// * <https://github.com/rust-lang/rust/blob/cbaeec14f90b59a91a6b0f17fc046c66fa811892/src/librustdoc/html/escape.rs>
|
||||
#[allow(clippy::string_slice)]
|
||||
impl fmt::Display for Escape<'_> {
|
||||
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
// Because the internet is always right, turns out there's not that many
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue