aboutsummaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app.rs b/src/app.rs
index ea7cf05..02d18c6 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -27,8 +27,8 @@ use crate::{
};
pub const TICK_RATE: u64 = 1000 / 20;
-const MIN_TERM_COL: u16 = 40;
-const MIN_TERM_ROW: u16 = 10;
+pub const MIN_TERM_COL: u16 = 40;
+pub const MIN_TERM_ROW: u16 = 10;
const MAX_QUOTE_LINE: u16 = 80;
const MIN_MARGIN: u16 = 4;
@@ -80,7 +80,7 @@ impl App<'_> {
for w in quote.split_whitespace().filter(|s| !s.is_empty()) {
let w_len = w.chars().count();
if w_len > max as usize {
- return Err(WordTooLongError::new(w));
+ return Err(WordTooLongError::new(w, max));
}
if w_len + counter > max as usize {
XMR address: 854DmXNrxULU3ZFJVs4Wc8PFhbq29RhqHhY8W6cdWrtFN3qmooKyyeYPcDzZTNRxphhJ5UzASQfAdEMwSteVqymk28aLhqj