Skip to content

Commit

Permalink
removed unused generic builder
Browse files Browse the repository at this point in the history
  • Loading branch information
minghuaw committed Oct 20, 2024
1 parent d5f6101 commit e2f665d
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions mlx-nn/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,3 @@ pub(crate) fn get_mut_or_insert_with<'a>(

map.get_mut(key).unwrap()
}

/// A generic builder type for optional fields.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct Builder<T> {
/// The inner value
pub inner: T,
}

impl<T> Builder<T> {
/// Creates a new builder
pub fn new(inner: T) -> Self {
Self { inner }
}

/// Builds the inner value
pub fn build(self) -> T {
self.inner
}
}

0 comments on commit e2f665d

Please sign in to comment.