Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Nov 3, 2023
1 parent 1398572 commit 31c5c12
Show file tree
Hide file tree
Showing 17 changed files with 51 additions and 51 deletions.
6 changes: 3 additions & 3 deletions lib/xdrgen/generators/rust/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,21 +209,21 @@ pub struct Limits {

#[cfg(feature = "std")]
impl Limits {
fn none() -> Self {
pub fn none() -> Self {
Self {
depth: u32::MAX,
len: usize::MAX,
}
}

fn depth(depth: u32) -> Self {
pub fn depth(depth: u32) -> Self {
Limits {
depth,
..Limits::none()
}
}

fn len(len: usize) -> Self {
pub fn len(len: usize) -> Self {
Limits {
len,
..Limits::none()
Expand Down
6 changes: 3 additions & 3 deletions spec/output/generator_spec_rust/block_comments.x/MyXDR.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,21 +219,21 @@ pub struct Limits {

#[cfg(feature = "std")]
impl Limits {
fn none() -> Self {
pub fn none() -> Self {
Self {
depth: u32::MAX,
len: usize::MAX,
}
}

fn depth(depth: u32) -> Self {
pub fn depth(depth: u32) -> Self {
Limits {
depth,
..Limits::none()
}
}

fn len(len: usize) -> Self {
pub fn len(len: usize) -> Self {
Limits {
len,
..Limits::none()
Expand Down
6 changes: 3 additions & 3 deletions spec/output/generator_spec_rust/const.x/MyXDR.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,21 +219,21 @@ pub struct Limits {

#[cfg(feature = "std")]
impl Limits {
fn none() -> Self {
pub fn none() -> Self {
Self {
depth: u32::MAX,
len: usize::MAX,
}
}

fn depth(depth: u32) -> Self {
pub fn depth(depth: u32) -> Self {
Limits {
depth,
..Limits::none()
}
}

fn len(len: usize) -> Self {
pub fn len(len: usize) -> Self {
Limits {
len,
..Limits::none()
Expand Down
6 changes: 3 additions & 3 deletions spec/output/generator_spec_rust/enum.x/MyXDR.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,21 +219,21 @@ pub struct Limits {

#[cfg(feature = "std")]
impl Limits {
fn none() -> Self {
pub fn none() -> Self {
Self {
depth: u32::MAX,
len: usize::MAX,
}
}

fn depth(depth: u32) -> Self {
pub fn depth(depth: u32) -> Self {
Limits {
depth,
..Limits::none()
}
}

fn len(len: usize) -> Self {
pub fn len(len: usize) -> Self {
Limits {
len,
..Limits::none()
Expand Down
6 changes: 3 additions & 3 deletions spec/output/generator_spec_rust/nesting.x/MyXDR.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,21 +219,21 @@ pub struct Limits {

#[cfg(feature = "std")]
impl Limits {
fn none() -> Self {
pub fn none() -> Self {
Self {
depth: u32::MAX,
len: usize::MAX,
}
}

fn depth(depth: u32) -> Self {
pub fn depth(depth: u32) -> Self {
Limits {
depth,
..Limits::none()
}
}

fn len(len: usize) -> Self {
pub fn len(len: usize) -> Self {
Limits {
len,
..Limits::none()
Expand Down
6 changes: 3 additions & 3 deletions spec/output/generator_spec_rust/optional.x/MyXDR.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,21 +219,21 @@ pub struct Limits {

#[cfg(feature = "std")]
impl Limits {
fn none() -> Self {
pub fn none() -> Self {
Self {
depth: u32::MAX,
len: usize::MAX,
}
}

fn depth(depth: u32) -> Self {
pub fn depth(depth: u32) -> Self {
Limits {
depth,
..Limits::none()
}
}

fn len(len: usize) -> Self {
pub fn len(len: usize) -> Self {
Limits {
len,
..Limits::none()
Expand Down
6 changes: 3 additions & 3 deletions spec/output/generator_spec_rust/struct.x/MyXDR.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,21 +219,21 @@ pub struct Limits {

#[cfg(feature = "std")]
impl Limits {
fn none() -> Self {
pub fn none() -> Self {
Self {
depth: u32::MAX,
len: usize::MAX,
}
}

fn depth(depth: u32) -> Self {
pub fn depth(depth: u32) -> Self {
Limits {
depth,
..Limits::none()
}
}

fn len(len: usize) -> Self {
pub fn len(len: usize) -> Self {
Limits {
len,
..Limits::none()
Expand Down
6 changes: 3 additions & 3 deletions spec/output/generator_spec_rust/test.x/MyXDR.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,21 +219,21 @@ pub struct Limits {

#[cfg(feature = "std")]
impl Limits {
fn none() -> Self {
pub fn none() -> Self {
Self {
depth: u32::MAX,
len: usize::MAX,
}
}

fn depth(depth: u32) -> Self {
pub fn depth(depth: u32) -> Self {
Limits {
depth,
..Limits::none()
}
}

fn len(len: usize) -> Self {
pub fn len(len: usize) -> Self {
Limits {
len,
..Limits::none()
Expand Down
6 changes: 3 additions & 3 deletions spec/output/generator_spec_rust/union.x/MyXDR.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,21 +219,21 @@ pub struct Limits {

#[cfg(feature = "std")]
impl Limits {
fn none() -> Self {
pub fn none() -> Self {
Self {
depth: u32::MAX,
len: usize::MAX,
}
}

fn depth(depth: u32) -> Self {
pub fn depth(depth: u32) -> Self {
Limits {
depth,
..Limits::none()
}
}

fn len(len: usize) -> Self {
pub fn len(len: usize) -> Self {
Limits {
len,
..Limits::none()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,21 +219,21 @@ pub struct Limits {

#[cfg(feature = "std")]
impl Limits {
fn none() -> Self {
pub fn none() -> Self {
Self {
depth: u32::MAX,
len: usize::MAX,
}
}

fn depth(depth: u32) -> Self {
pub fn depth(depth: u32) -> Self {
Limits {
depth,
..Limits::none()
}
}

fn len(len: usize) -> Self {
pub fn len(len: usize) -> Self {
Limits {
len,
..Limits::none()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,21 +219,21 @@ pub struct Limits {

#[cfg(feature = "std")]
impl Limits {
fn none() -> Self {
pub fn none() -> Self {
Self {
depth: u32::MAX,
len: usize::MAX,
}
}

fn depth(depth: u32) -> Self {
pub fn depth(depth: u32) -> Self {
Limits {
depth,
..Limits::none()
}
}

fn len(len: usize) -> Self {
pub fn len(len: usize) -> Self {
Limits {
len,
..Limits::none()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,21 +219,21 @@ pub struct Limits {

#[cfg(feature = "std")]
impl Limits {
fn none() -> Self {
pub fn none() -> Self {
Self {
depth: u32::MAX,
len: usize::MAX,
}
}

fn depth(depth: u32) -> Self {
pub fn depth(depth: u32) -> Self {
Limits {
depth,
..Limits::none()
}
}

fn len(len: usize) -> Self {
pub fn len(len: usize) -> Self {
Limits {
len,
..Limits::none()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,21 +219,21 @@ pub struct Limits {

#[cfg(feature = "std")]
impl Limits {
fn none() -> Self {
pub fn none() -> Self {
Self {
depth: u32::MAX,
len: usize::MAX,
}
}

fn depth(depth: u32) -> Self {
pub fn depth(depth: u32) -> Self {
Limits {
depth,
..Limits::none()
}
}

fn len(len: usize) -> Self {
pub fn len(len: usize) -> Self {
Limits {
len,
..Limits::none()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,21 +219,21 @@ pub struct Limits {

#[cfg(feature = "std")]
impl Limits {
fn none() -> Self {
pub fn none() -> Self {
Self {
depth: u32::MAX,
len: usize::MAX,
}
}

fn depth(depth: u32) -> Self {
pub fn depth(depth: u32) -> Self {
Limits {
depth,
..Limits::none()
}
}

fn len(len: usize) -> Self {
pub fn len(len: usize) -> Self {
Limits {
len,
..Limits::none()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,21 +219,21 @@ pub struct Limits {

#[cfg(feature = "std")]
impl Limits {
fn none() -> Self {
pub fn none() -> Self {
Self {
depth: u32::MAX,
len: usize::MAX,
}
}

fn depth(depth: u32) -> Self {
pub fn depth(depth: u32) -> Self {
Limits {
depth,
..Limits::none()
}
}

fn len(len: usize) -> Self {
pub fn len(len: usize) -> Self {
Limits {
len,
..Limits::none()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,21 +219,21 @@ pub struct Limits {

#[cfg(feature = "std")]
impl Limits {
fn none() -> Self {
pub fn none() -> Self {
Self {
depth: u32::MAX,
len: usize::MAX,
}
}

fn depth(depth: u32) -> Self {
pub fn depth(depth: u32) -> Self {
Limits {
depth,
..Limits::none()
}
}

fn len(len: usize) -> Self {
pub fn len(len: usize) -> Self {
Limits {
len,
..Limits::none()
Expand Down
Loading

0 comments on commit 31c5c12

Please sign in to comment.