Event JSON
{
"id": "ee8150131d16fdf8f645a32a257d5d2bc8affac3ff232261d1eec81c3c4decd4",
"pubkey": "979383f8767c5d795fcad86f82dc7b38b384c1a473710c433014dc2c0fb0e359",
"created_at": 1691480520,
"kind": 1,
"tags": [
[
"p",
"bf55f1f1d153f4b7b183b7365a4dd8a3012a0cd5992104ce32aee497707131e7",
"wss://relay.mostr.pub"
],
[
"p",
"99fcbcfaa55a2c9c2f8c820006285ec4cab786d6b134f54726da9ce406f3ad5b",
"wss://relay.mostr.pub"
],
[
"e",
"25e340ab0a01bf60b5e0607d7328180e343c94d1e1cfd5fb42675b694a5d7089",
"wss://relay.mostr.pub",
"reply"
],
[
"emoji",
"ablobcatheart",
"https://cdn.fosstodon.org/custom_emojis/images/000/214/979/original/2ce65fe2d4a06c49.png"
],
[
"proxy",
"https://fosstodon.org/users/mo8it/statuses/110852867420035174",
"activitypub"
]
],
"content": "nostr:npub1ha2lruw3206t0vvrkum95nwc5vqj5rx4nyssfn3j4mjfwur3x8nsymk5hs Great post :ablobcatheart:\n\nPersonally, I prefer early return and think that it is widely used in Rust. This would change Name::new such that you `return` the error and at the end you have `Ok(…)` without the `else`.\n\nAlso, the Rust community expects `new` to return Self directly. Clippy used to suggest renaming `new` to `build` when returning a Result or Option of Self.\n\nUser::new is not doing anything. I would remove it and just use struct initialization instead.",
"sig": "b71d12e53c7ae011066c603b3ba5e59440a273f01a25f1c66d9ba91134b4db9378e5dc5bc8986ca9c9a43d0eb1eb23fa4631278a9a27b850a5c3aab9e78ceb88"
}