Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
myypo committed Oct 6, 2024
1 parent f1f83ab commit 1940bc9
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion compass/src/common_types/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl<'de> de::Deserialize<'de> for Timestamp {
{
struct TimestampVisitor;

impl<'de> de::Visitor<'de> for TimestampVisitor {
impl de::Visitor<'_> for TimestampVisitor {
type Value = Timestamp;

fn expecting(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion compass/src/config/picker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl<'de> de::Deserialize<'de> for PickerConfig {
{
struct FieldVisitor;

impl<'de> de::Visitor<'de> for FieldVisitor {
impl de::Visitor<'_> for FieldVisitor {
type Value = Field;

fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion compass/src/config/picker/window_grid_size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl<'de> de::Deserialize<'de> for WindowGridSize {
{
struct WindowGridSizeVisitor;

impl<'de> de::Visitor<'de> for WindowGridSizeVisitor {
impl de::Visitor<'_> for WindowGridSizeVisitor {
type Value = WindowGridSize;

fn expecting(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion compass/src/functions/goto/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub struct AbsoluteOptions {
pub target: AbsoluteTarget,
}

impl<'a> TryFrom<CompassArgs<'a>> for GotoOptions {
impl TryFrom<CompassArgs<'_>> for GotoOptions {
type Error = Error;

fn try_from(value: CompassArgs) -> Result<Self> {
Expand Down
2 changes: 1 addition & 1 deletion compass/src/functions/pop/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl Default for RelativeOptions {
}
}

impl<'a> TryFrom<CompassArgs<'a>> for PopOptions {
impl TryFrom<CompassArgs<'_>> for PopOptions {
type Error = Error;

fn try_from(value: CompassArgs) -> Result<Self> {
Expand Down
8 changes: 4 additions & 4 deletions compass/src/highlights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub struct RecordHighlightNames {
pub sign: &'static str,
}

impl<'a> RecordHighlightList<'a> {
impl RecordHighlightList<'_> {
pub fn record_hl_names(typ: RecordMarkTime) -> RecordHighlightNames {
match typ {
RecordMarkTime::Past => RecordHighlightNames {
Expand All @@ -63,7 +63,7 @@ impl<'a> RecordHighlightList<'a> {
}
}

impl<'a> Default for RecordHighlightList<'a> {
impl Default for RecordHighlightList<'_> {
fn default() -> Self {
Self {
past: RecordHighlight {
Expand Down Expand Up @@ -116,7 +116,7 @@ pub struct HintHighlightNames {
pub path: &'static str,
}

impl<'a> HintHighlightList<'a> {
impl HintHighlightList<'_> {
pub fn hint_hl_names(typ: GridLayout) -> HintHighlightNames {
match typ {
GridLayout::Open => HintHighlightNames {
Expand All @@ -131,7 +131,7 @@ impl<'a> HintHighlightList<'a> {
}
}

impl<'a> Default for HintHighlightList<'a> {
impl Default for HintHighlightList<'_> {
fn default() -> Self {
Self {
open: HintHighlight {
Expand Down
2 changes: 1 addition & 1 deletion compass/src/ui/namespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl<'de> de::Deserialize<'de> for Namespace {
{
struct NamespaceVisitor;

impl<'de> de::Visitor<'de> for NamespaceVisitor {
impl de::Visitor<'_> for NamespaceVisitor {
type Value = Namespace;

fn expecting(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
Expand Down

0 comments on commit 1940bc9

Please sign in to comment.