clippy
This commit is contained in:
parent
1fca1c51e4
commit
4c7ae4feb2
1 changed files with 6 additions and 7 deletions
|
@ -89,13 +89,12 @@ fn main() {
|
|||
};
|
||||
|
||||
let (key, needs_pw) = {
|
||||
let fragment = match url.split_once('#').map(|(_, fragment)| fragment) {
|
||||
Some(fragment) => fragment,
|
||||
None => {
|
||||
let fragment = if let Some(fragment) = url.split_once('#').map(|(_, fragment)| fragment) {
|
||||
fragment
|
||||
} else {
|
||||
error!("Key is missing in url; bailing.");
|
||||
render_message("Invalid paste link: Missing decryption key.".into());
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
let partial_parsed_url = match PartialParsedUrl::try_from(fragment) {
|
||||
|
|
Loading…
Reference in a new issue