aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Letan <lthms@soap.coffee>2020-10-21 21:46:28 +0200
committerThomas Letan <lthms@soap.coffee>2020-10-21 21:46:28 +0200
commit240343b8af00f739327949a1a2114e16f4fe3af5 (patch)
tree6446bafe79668ccf92a100a96b316bdf49e58e03
parentExport TypedUrl (diff)
Make [to_string] public
-rw-r--r--typed-urls-derive/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/typed-urls-derive/src/lib.rs b/typed-urls-derive/src/lib.rs
index 1bd8578..c1bd1be 100644
--- a/typed-urls-derive/src/lib.rs
+++ b/typed-urls-derive/src/lib.rs
@@ -120,7 +120,7 @@ fn derive_ast_to_string(
}
quote! { impl #name {
- fn to_string(&self) -> String {
+ pub fn to_string(&self) -> String {
match self {
#(#match_bodies),*
}