🎨 Retoques al importar fmt para usar Display
				
					
				
			This commit is contained in:
		
							parent
							
								
									97581659bf
								
							
						
					
					
						commit
						8de3f0b7a5
					
				
					 2 changed files with 4 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -9,10 +9,9 @@ use crate::{builder_fn, join};
 | 
			
		|||
 | 
			
		||||
use std::collections::HashMap;
 | 
			
		||||
use std::error::Error;
 | 
			
		||||
use std::fmt::{self, Display};
 | 
			
		||||
use std::str::FromStr;
 | 
			
		||||
 | 
			
		||||
use std::fmt;
 | 
			
		||||
 | 
			
		||||
/// Operaciones para modificar el contexto ([`Context`]) del documento.
 | 
			
		||||
pub enum AssetsOp {
 | 
			
		||||
    // Favicon.
 | 
			
		||||
| 
						 | 
				
			
			@ -43,7 +42,7 @@ pub enum ErrorParam {
 | 
			
		|||
    ParseError(String),
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl fmt::Display for ErrorParam {
 | 
			
		||||
impl Display for ErrorParam {
 | 
			
		||||
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
 | 
			
		||||
        match self {
 | 
			
		||||
            ErrorParam::NotFound => write!(f, "Parameter not found"),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue