refactor: fix formating in rust
This commit is contained in:
@@ -326,7 +326,7 @@ impl PrfItem {
|
||||
if let Ok(mut parsed_url) = Url::parse(url) {
|
||||
if parsed_url.set_host(Some(new_domain)).is_ok() {
|
||||
final_url = parsed_url.to_string();
|
||||
log::info!(target: "app", "URL host updated to -> {}", final_url);
|
||||
log::info!(target: "app", "URL host updated to -> {final_url}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -340,10 +340,12 @@ impl IVerge {
|
||||
}
|
||||
|
||||
pub fn new() -> Self {
|
||||
dirs::verge_path().and_then(|path| help::read_yaml::<IVerge>(&path)).unwrap_or_else(|err| {
|
||||
log::error!(target: "app", "{err}");
|
||||
Self::template()
|
||||
})
|
||||
dirs::verge_path()
|
||||
.and_then(|path| help::read_yaml::<IVerge>(&path))
|
||||
.unwrap_or_else(|err| {
|
||||
log::error!(target: "app", "{err}");
|
||||
Self::template()
|
||||
})
|
||||
}
|
||||
|
||||
pub fn template() -> Self {
|
||||
|
||||
Reference in New Issue
Block a user