eliminadas warnings lol
This commit is contained in:
@@ -10,11 +10,11 @@ fn main() {
|
|||||||
let mut body = String::new();
|
let mut body = String::new();
|
||||||
|
|
||||||
println!("Cual es el titulo de su post: ");
|
println!("Cual es el titulo de su post: ");
|
||||||
stdin().read_line(&mut title);
|
let _ = stdin().read_line(&mut title);
|
||||||
let title = title.trim_end();
|
let title = title.trim_end();
|
||||||
|
|
||||||
println!("Ingrese el cuerpo de {}, aprete {} para terminar de escribir", title, EOF);
|
println!("Ingrese el cuerpo de {}, aprete {} para terminar de escribir", title, EOF);
|
||||||
stdin().read_to_string(&mut body);
|
let _ = stdin().read_to_string(&mut body);
|
||||||
|
|
||||||
let post = crear_post(connection, title, &body);
|
let post = crear_post(connection, title, &body);
|
||||||
println!("Grabado post con id: {}", post.id);
|
println!("Grabado post con id: {}", post.id);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
use self::modelos::*;
|
use self::modelos::*;
|
||||||
use diesel::{prelude::*, connection};
|
use diesel::prelude::*;
|
||||||
use rust_diesel_blogs::*;
|
use rust_diesel_blogs::*;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
use self::modelos::Post;
|
use self::modelos::Post;
|
||||||
use rust_diesel_blogs::*;
|
use rust_diesel_blogs::*;
|
||||||
use diesel::{prelude::*, connection};
|
use diesel::prelude::*;
|
||||||
use std::env::args;
|
use std::env::args;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|||||||
Reference in New Issue
Block a user