chore: Update dependencies
This commit is contained in:
parent
4eef0caae5
commit
8ec0ce9224
14 changed files with 823 additions and 465 deletions
|
|
@ -5,12 +5,16 @@ use futures::{Stream, StreamExt};
|
|||
use serde::Deserialize;
|
||||
use tokio::io::{AsyncBufReadExt, AsyncRead};
|
||||
|
||||
/// stdin with AsyncRead support
|
||||
/// stdin with [`AsyncWrite`] support
|
||||
#[must_use]
|
||||
#[inline]
|
||||
pub fn async_stdin() -> tokio::io::Stdin {
|
||||
tokio::io::stdin()
|
||||
}
|
||||
|
||||
/// stdout with AsyncWrite support
|
||||
/// stdout with [`AsyncWrite`] support
|
||||
#[must_use]
|
||||
#[inline]
|
||||
pub fn async_stdout() -> tokio::io::Stdout {
|
||||
tokio::io::stdout()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -111,11 +111,13 @@ pub struct PluginSearchResult {
|
|||
}
|
||||
|
||||
impl PluginSearchResult {
|
||||
#[must_use]
|
||||
#[inline]
|
||||
pub fn cache_identifier(&self) -> Option<String> {
|
||||
// the exec field may clash in multiple search results as the arguments
|
||||
// are cut from the string
|
||||
// self.exec.to_owned().unwrap_or_else(|| self.name.to_owned())
|
||||
self.exec.as_ref().map(|_| self.name.to_owned())
|
||||
self.exec.as_ref().map(|_| self.name.clone())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue