commit bbd955fd4e4ef8d19b9d917e55221f8332365b2f parent 813a0b35776f1228cd63ac585addb3aa3a37db08 Author: Papayapaya <91221817+Papayapaya@users.noreply.github.com> Date: Thu, 17 Nov 2022 14:29:43 -0800 fix assert Diffstat:
| M | scuttlebutt/src/main.rs | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scuttlebutt/src/main.rs b/scuttlebutt/src/main.rs @@ -106,7 +106,7 @@ pub fn check_name(name: String) -> String{ }; index += 1; }; - assert(fixed_name != "", "name is empty or contains only illegal characters"); + assert!(fixed_name != "", "name is empty or contains only illegal characters"); return fixed_name; }