Skip to content

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

@atsushi130

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
}

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