Skip to content

Router's position change access control to private. #1

Description

@atsushi130

Can change router's position from the outside. If over the number of substitution, so panic !

pub struct Router {
    pub position: usize,
    pub substitution_table: SubstitutionTable
}

change to

pub struct Router {
    position: usize,
    substitution_table: SubstitutionTable
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions