Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: allow for unwrap and provide SAFETY message
Fintan Halpenny committed 9 months ago
commit bc4a8295a7d9aaa31aa9888e6667162261c1f25e
parent 3fd90bc3be1a56a0f2934f714cec8a8dbefadca9
1 file changed +3 -0
modified crates/radicle-cli/src/commands/publish.rs
@@ -106,6 +106,9 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
        doc.visibility = Visibility::Public;
    })?;

+
    // SAFETY: the `Title` here is guaranteed to be nonempty and does not
+
    // contain `\n` or `\r`.
+
    #[allow(clippy::unwrap_used)]
    identity.update(
        cob::Title::new("Publish repository").unwrap(),
        "",