1 2 3 4 5 6 7 8 9
use spru::player; #[derive(Debug, Clone, thiserror::Error)] pub enum Error { #[error("Player with id {0} already exists")] PlayerAlreadyExists(player::Id), #[error("Player with id {0} does not exist")] PlayerDoesNotExist(player::Id), }