Skip to content

Commit

Permalink
Merge pull request #433 from zhiburt/patch/refactorings-1
Browse files Browse the repository at this point in the history
Fix test fail
  • Loading branch information
zhiburt authored Oct 26, 2024
2 parents 68f2538 + b6b6ef5 commit 68f139f
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions tabled/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ ansi = ["papergrid/ansi", "ansi-str", "ansitok", "std"]
macros = ["std"]

[dependencies]
papergrid = { version = "0.12", default-features = false }
tabled_derive = { version = "0.8", optional = true }
papergrid = { path = "../papergrid", default-features = false }
tabled_derive = { path = "../tabled_derive", optional = true }
ansi-str = { version = "0.8", optional = true }
ansitok = { version = "0.2", optional = true }

Expand Down
2 changes: 1 addition & 1 deletion tabled/src/tables/compact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ impl<I, D> CompactTable<I, D> {
D: Dimension,
W: std::io::Write,
{
let writer = super::util::utf8_writer::UTF8Writer::new(writer);
let writer = crate::util::utf8_writer::UTF8Writer::new(writer);
self.fmt(writer)
.map_err(|err| std::io::Error::new(std::io::ErrorKind::Other, err))
}
Expand Down
2 changes: 1 addition & 1 deletion tabled/src/tables/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ use crate::{
settings::{Style, TableOption},
};

use super::util::utf8_writer::UTF8Writer;
use crate::util::utf8_writer::UTF8Writer;

/// A table which consumes an [`IntoRecords`] iterator.
///
Expand Down
1 change: 0 additions & 1 deletion tabled/src/tables/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
//! A table with a greater control of a layout.
mod compact;
mod util;

#[cfg(feature = "std")]
mod extended;
Expand Down
2 changes: 0 additions & 2 deletions tabled/src/tables/util/mod.rs

This file was deleted.

3 changes: 3 additions & 0 deletions tabled/src/util/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
#[cfg(feature = "std")]
pub(crate) mod string;

#[cfg(feature = "std")]
pub(crate) mod utf8_writer;
File renamed without changes.
18 changes: 9 additions & 9 deletions tabled/tests/core/table_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -740,15 +740,15 @@ mod derived {
},
]
}),
"+------------------------------------+-----------------+-------------------------------+--------+"
"| name | author | text | rating |"
"+------------------------------------+-----------------+-------------------------------+--------+"
"| Rebase vs Merge commit in depth 👋 | Rose Kuphal DVM | A multiline | 43 |"
"| | | text with 🤯 😳 🥵 🥶 | |"
"| | | a bunch of emojies ☄\u{fe0f} 💥 🔥 🌪 | |"
"+------------------------------------+-----------------+-------------------------------+--------+"
"| Keep it simple | Unknown | 🍳 | 100 |"
"+------------------------------------+-----------------+-------------------------------+--------+"
"+------------------------------------+-----------------+--------------------------------+--------+"
"| name | author | text | rating |"
"+------------------------------------+-----------------+--------------------------------+--------+"
"| Rebase vs Merge commit in depth 👋 | Rose Kuphal DVM | A multiline | 43 |"
"| | | text with 🤯 😳 🥵 🥶 | |"
"| | | a bunch of emojies ☄ 💥 🔥 🌪 | |"
"+------------------------------------+-----------------+--------------------------------+--------+"
"| Keep it simple | Unknown | 🍳 | 100 |"
"+------------------------------------+-----------------+--------------------------------+--------+"
);
}

Expand Down

0 comments on commit 68f139f

Please sign in to comment.