Box all the things in dummy platform
This commit is contained in:
parent
a5ef1bf81e
commit
93c7e17090
1 changed files with 3 additions and 3 deletions
|
|
@ -7,19 +7,19 @@ struct Dummy;
|
|||
pub fn connect<W: HasRawWindowHandle>(
|
||||
_window: &W,
|
||||
) -> Result<Box<dyn ClipboardProvider>, Box<dyn std::error::Error>> {
|
||||
Ok(Dummy)
|
||||
Ok(Box::new(Dummy))
|
||||
}
|
||||
|
||||
impl ClipboardProvider for Dummy {
|
||||
fn read(&self) -> Result<String, Box<dyn std::error::Error>> {
|
||||
Err(Error::Unimplemented)
|
||||
Err(Box::new(Error::Unimplemented))
|
||||
}
|
||||
|
||||
fn write(
|
||||
&mut self,
|
||||
contents: String,
|
||||
) -> Result<(), Box<dyn std::error::Error>> {
|
||||
Err(Error::Unimplemented)
|
||||
Err(Box::new(Error::Unimplemented))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue