Skip to content

Commit

Permalink
Lintfix: no need for an extra pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
isbm committed Feb 25, 2025
1 parent 195f663 commit 75df0ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysmaster/src/master.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ impl SysMaster {
tokio::spawn(async move {
let mut m = c_master.lock().await;
let mrec = m.mreg.get(req.id()).unwrap_or_default().unwrap_or_default();
let pl = match serde_json::from_str::<HashMap<String, serde_json::Value>>(&req.payload()) {
let pl = match serde_json::from_str::<HashMap<String, serde_json::Value>>(req.payload()) {
Ok(pl) => pl,
Err(err) => {
log::error!("An event message with the bogus payload: {err}");
Expand Down

0 comments on commit 75df0ca

Please sign in to comment.