Skip to content

Commit bd3922f

Browse files
committed
Revert pointless visibility changes
1 parent 5edbc5a commit bd3922f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

form_urlencoded/src/query_encoding.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ use std::borrow::Cow;
1010

1111
pub type EncodingOverride<'a> = Option<&'a dyn Fn(&str) -> Cow<[u8]>>;
1212

13-
pub fn encode<'a>(encoding_override: EncodingOverride, input: &'a str) -> Cow<'a, [u8]> {
13+
pub(crate) fn encode<'a>(encoding_override: EncodingOverride, input: &'a str) -> Cow<'a, [u8]> {
1414
if let Some(o) = encoding_override {
1515
return o(input);
1616
}
1717
input.as_bytes().into()
1818
}
1919

20-
pub fn decode_utf8_lossy(input: Cow<[u8]>) -> Cow<str> {
20+
pub(crate) fn decode_utf8_lossy(input: Cow<[u8]>) -> Cow<str> {
2121
match input {
2222
Cow::Borrowed(bytes) => String::from_utf8_lossy(bytes),
2323
Cow::Owned(bytes) => {

0 commit comments

Comments
 (0)