Skip to content

Commit

Permalink
feat(rust): run clippy to fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Oakley committed Jan 5, 2023
1 parent 413ed28 commit 366b144
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions implementations/rust/ockam/ockam_api/src/cloud/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,15 +240,9 @@ impl<'a> InfluxDBTokenLeaseManagerConfig<'a> {
user_access_rule: Option<S>,
admin_access_rule: Option<S>,
) -> Self {
let uar: Option<CowStr<'a>> = match user_access_rule {
Some(s) => Some(s.into()),
None => None,
};

let aar: Option<CowStr<'a>> = match admin_access_rule {
Some(s) => Some(s.into()),
None => None,
};
let uar: Option<CowStr<'a>> = user_access_rule.map(|s| s.into());

let aar: Option<CowStr<'a>> = admin_access_rule.map(|s| s.into());

Self {
#[cfg(feature = "tag")]
Expand Down

0 comments on commit 366b144

Please sign in to comment.