Skip to content

Commit b33179e

Browse files
Format Rust code using rustfmt
1 parent b47b67a commit b33179e

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

src/sr/finder/de.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -809,8 +809,9 @@ impl<'de: 'a, 'a> DeserializeSeed<'de> for SetGroupsDeserializerReturn<'a> {
809809
Ok((Some(DGroups::Single(group)), score, ok))
810810
}
811811
fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>
812-
where
813-
E: serde::de::Error, {
812+
where
813+
E: serde::de::Error,
814+
{
814815
debug!("SGroupsChooserVisitor: visit_str");
815816
self.visit_string(v.to_string())
816817
}
@@ -1046,14 +1047,16 @@ impl<'de: 'a, 'a> DeserializeSeed<'de> for SetUserDeserializerReturn<'a> {
10461047
Ok((Some(user), score, ok))
10471048
}
10481049
fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>
1049-
where
1050-
E: serde::de::Error, {
1050+
where
1051+
E: serde::de::Error,
1052+
{
10511053
debug!("SetUserVisitor: visit_str");
10521054
self.visit_string(v.to_string())
10531055
}
10541056
fn visit_string<E>(self, v: String) -> Result<Self::Value, E>
1055-
where
1056-
E: serde::de::Error, {
1057+
where
1058+
E: serde::de::Error,
1059+
{
10571060
debug!("SetUserVisitor: visit_string");
10581061
let user = if let Ok(uid) = v.parse::<u32>() {
10591062
DUserType::from(uid)

src/sr/finder/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,11 @@ impl BestExecSettings {
188188
found = true;
189189
self.final_path = all_paths_from_env(
190190
&t_env_path.iter().map(|s| s.as_str()).collect::<Vec<_>>(),
191-
&cli.cmd_path).first().ok_or_else::<Box<dyn std::error::Error>, _>(|| "No path found".to_string().into())?.to_path_buf();
191+
&cli.cmd_path,
192+
)
193+
.first()
194+
.ok_or_else::<Box<dyn std::error::Error>, _>(|| "No path found".to_string().into())?
195+
.to_path_buf();
192196
self.score.cmd_min = CmdMin::FullWildcardPath | CmdMin::RegexArgs;
193197
} else {
194198
for command in commands.add() {

0 commit comments

Comments
 (0)