Skip to content

Commit bdf1911

Browse files
committed
Run rustfmt.
1 parent c5835b2 commit bdf1911

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

deepwell/src/license.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
//! Constant data for licenses usable by Wikijump sites.
2222
23-
use fluent::FluentArgs;
2423
use crate::locales::Localizations;
2524
use crate::services::Result;
25+
use fluent::FluentArgs;
2626
use unic_langid::LanguageIdentifier;
2727

2828
pub use crate::models::sea_orm_active_enums::License;
@@ -93,14 +93,8 @@ impl License {
9393
locales: &[LanguageIdentifier],
9494
) -> Result<String> {
9595
assert!(!locales.is_empty(), "No languages specified");
96-
9796
let args = FluentArgs::new();
98-
let name = localization.translate(
99-
locales,
100-
self.fluent_key(),
101-
&args,
102-
)?;
103-
97+
let name = localization.translate(locales, self.fluent_key(), &args)?;
10498
Ok(name.to_string())
10599
}
106100
}

deepwell/src/services/site/structs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1919
*/
2020

21+
use crate::license::License;
2122
use crate::models::alias::Model as AliasModel;
2223
use crate::models::site::Model as SiteModel;
2324
use crate::models::site_domain::Model as SiteDomainModel;
24-
use crate::license::License;
2525
use crate::types::{Maybe, Reference};
2626
use ftml::layout::Layout;
2727
use std::net::IpAddr;

0 commit comments

Comments
 (0)