aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/api.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-04-19 22:39:16 +0200
committermetamuffin <metamuffin@disroot.org>2025-04-19 22:39:16 +0200
commit4523bd0d455781c5cc3544fb230b69990fd53225 (patch)
tree6ad31926f80e301571ebebe62f1f3d389704066c /server/src/routes/api.rs
parentfe318c8e961aa39d3daf386ddddd0f74b38079f5 (diff)
downloadjellything-4523bd0d455781c5cc3544fb230b69990fd53225.tar
jellything-4523bd0d455781c5cc3544fb230b69990fd53225.tar.bz2
jellything-4523bd0d455781c5cc3544fb230b69990fd53225.tar.zst
cargo fmt
Diffstat (limited to 'server/src/routes/api.rs')
-rw-r--r--server/src/routes/api.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/routes/api.rs b/server/src/routes/api.rs
index 83569e0..13708ce 100644
--- a/server/src/routes/api.rs
+++ b/server/src/routes/api.rs
@@ -65,7 +65,8 @@ pub fn r_api_nodes_modified_since(
let mut nodes = database.get_nodes_modified_since(since)?;
nodes.retain(|id| {
database.get_node(*id).is_ok_and(|n| {
- n.as_ref().is_some_and(|n| n.visibility >= Visibility::Reduced)
+ n.as_ref()
+ .is_some_and(|n| n.visibility >= Visibility::Reduced)
})
});
Ok(Json(nodes))