File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ use anyhow::Context;
13
13
/// # Returns
14
14
///
15
15
/// * `Result<()>` - Returns Ok on success, or an error if the clipboard could not be accessed.
16
- pub fn copy_text_to_clipboard ( rendered : & str ) -> Result < ( ) > {
17
- use anyhow:: Result ;
16
+ pub fn copy_text_to_clipboard ( rendered : & str ) -> anyhow:: Result < ( ) > {
18
17
use arboard:: Clipboard ;
19
18
match Clipboard :: new ( ) {
20
19
Ok ( mut clipboard) => {
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ fn main() -> Result<()> {
211
211
}
212
212
#[ cfg( not( target_os = "linux" ) ) ]
213
213
{
214
- use code2prompt :: copy_text_to_clipboard;
214
+ use crate :: clipboard :: copy_text_to_clipboard;
215
215
match copy_text_to_clipboard ( & rendered) {
216
216
Ok ( _) => {
217
217
println ! (
You can’t perform that action at this time.
0 commit comments