refactor: Change 'to_owned()' to 'into()'

pull/1/head
sgoudham 3 years ago
parent ddf02376c3
commit d930d7992f
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -156,9 +156,9 @@ fn trim(bytes: &[u8]) -> Result<String, AppError> {
impl Url {
pub(crate) fn new(protocol: &str, domain: Domain, path: &str) -> Self {
Self {
protocol: protocol.to_owned(),
protocol: protocol.into(),
domain,
path: path.to_owned(),
path: path.into(),
}
}
}

Loading…
Cancel
Save