mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
clean up my mistake
This commit is contained in:
parent
8fae76828e
commit
7d45e6bb13
1 changed files with 8 additions and 3 deletions
|
@ -1,6 +1,11 @@
|
|||
use core::fmt::{self, Display};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{error, fmt, fmt::Write, ops, str::FromStr, sync::Arc};
|
||||
use std::{
|
||||
error, fmt,
|
||||
fmt::{Display, Write},
|
||||
ops,
|
||||
str::FromStr,
|
||||
sync::Arc,
|
||||
};
|
||||
use thiserror::Error;
|
||||
|
||||
/// This is a result type into which any error can be converted,
|
||||
|
@ -65,7 +70,7 @@ impl fmt::Display for NoCustomError {
|
|||
impl FromStr for NoCustomError {
|
||||
type Err = ();
|
||||
|
||||
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||
fn from_str(_s: &str) -> Result<Self, Self::Err> {
|
||||
Ok(NoCustomError)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue