From c0e58dec042b35540bd7a0759e0cfcb9f34d446f Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 14 Apr 2023 10:14:57 +0200 Subject: [PATCH] Warn when not using Self --- src/common.rs | 2 +- src/contact/mod.rs | 26 ++++++------- src/domain/mod.rs | 38 +++++++++---------- src/error.rs | 10 ++--- src/extensions/consolidate.rs | 2 +- src/hello.rs | 2 +- src/host/mod.rs | 22 +++++------ src/lib.rs | 1 + src/response.rs | 70 +++++++++++++++++------------------ 9 files changed, 87 insertions(+), 86 deletions(-) diff --git a/src/common.rs b/src/common.rs index efadcc6..c05aa04 100644 --- a/src/common.rs +++ b/src/common.rs @@ -29,7 +29,7 @@ impl<'xml> FromXml<'xml> for NoExtension { } impl Extension for NoExtension { - type Response = NoExtension; + type Response = Self; } /// The `