0.2.1: bump smurf to 0.3.0

Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
Ivan Bushchik 2023-10-27 10:20:43 +03:00
parent fc1ebcbe60
commit 4b22cdc7d1
No known key found for this signature in database
GPG key ID: 2F16FBF3262E090C
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "urouter"
version = "0.2.0"
version = "0.2.1"
edition = "2021"
license = "MIT"
repository = "https://github.com/ivabus/urouter"
@ -12,4 +12,4 @@ rocket = "0.5.0-rc.3"
serde = { version = "1.0.163", features = ["derive"] }
serde_json = "1.0.96"
url-escape = "0.1.1"
smurf = "0.2.0"
smurf = "0.3.0"

View file

@ -73,9 +73,9 @@ impl<'r> FromRequest<'r> for UserAgent {
fn get_return(alias: &Alias) -> Response {
return match alias.is_url {
Some(true) => Response::Redirect(Redirect::to(alias.alias.clone())),
_ => Response::Text(RawText(
smurf::io::read_file_to_str(&PathBuf::from(&alias.alias)).unwrap(),
)),
_ => {
Response::Text(RawText(smurf::io::read_file_str(&PathBuf::from(&alias.alias)).unwrap()))
}
};
}