Skip to content

Commit

Permalink
Removed trait bounds to satisfy MR feedback; Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
wdoppenberg committed Sep 16, 2024
1 parent 7f6ef63 commit e9d6dee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -932,13 +932,13 @@ impl<'a, T: 'a + CellType> DoubleEndedIterator for Rows<'a, T> {
impl<'a, T: 'a + CellType> ExactSizeIterator for Rows<'a, T> {}

/// Struct with the key elements of a table
pub struct Table<T: CellType> {
pub struct Table<T> {
pub(crate) name: String,
pub(crate) sheet_name: String,
pub(crate) columns: Vec<String>,
pub(crate) data: Range<T>,
}
impl<T: CellType> Table<T> {
impl<T> Table<T> {
/// Get the name of the table
pub fn name(&self) -> &str {
&self.name
Expand Down
1 change: 0 additions & 1 deletion tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,6 @@ fn table_by_ref() {
.expect("Could not get data from table ref."),
&DataRef::Float(64.0)
);
xls.worksheet_range_at(0).unwrap().unwrap();

// Check if owned data works
let owned_data: Range<DataRef> = table.into();
Expand Down

0 comments on commit e9d6dee

Please sign in to comment.