names => exponents
bendn 2024-02-20
parent b77f98e · commit 342ce97
-rw-r--r--Cargo.toml1
-rw-r--r--src/main.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 3951b8f..e39623f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,6 +8,7 @@ repository = "https://github.com/bend-n/beeg"
authors = ["bendn <[email protected]>"]
[dependencies]
+clipp = "0.1.0"
comat = "0.1.3"
phf = { version = "0.11.2", features = ["macros"] }
regex = "1.10.3"
diff --git a/src/main.rs b/src/main.rs
index 75a4ccc..7f3ef10 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -37,5 +37,6 @@ fn main() -> ExitCode {
};
let exponent = TAB[mat.get(2).unwrap().into()];
println!("{}e+{exponent}", mat.get(1).unwrap().as_str());
+ clipp::copy(format!("{}e+{exponent}", mat.get(1).unwrap().as_str()));
ExitCode::SUCCESS
}