chore: Fix unused variable warning in url_from_relative_path

This commit is contained in:
Mike Welsh 2020-08-16 18:44:57 -07:00
parent 95acc14190
commit 13b4b6bbbb
1 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,10 @@ pub fn url_from_relative_path<P: AsRef<Path>>(base: P, relative: &str) -> Result
/// Unix, Windows, or Redox, this function actually carries out the above
/// instructions.
#[cfg(not(any(unix, windows, target_os = "redox")))]
pub fn url_from_relative_path<P: AsRef<Path>>(base: P, relative: &str) -> Result<Url, ParseError> {
pub fn url_from_relative_path<P: AsRef<Path>>(
_base: P,
_relative: &str,
) -> Result<Url, ParseError> {
Err(ParseError::RelativeUrlWithoutBase)
}